Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] ThirdPartyNotices.txt and $(CONFIGURATIONS) #1367

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Mar 5, 2018

An unanticipated side-effect of commit 2bd13c4 was that
make prepare was downloading bundle-v*.zip for both
Debug and Release configurations, even on the PR builder (which
only builds Debug by default):

Downloading `https://xamjenkinsartifact.azureedge.net/xamarin-android/xamarin-android/bin/Debug/bundle-v21-h86de098f-Debug-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip` to `/Users/builder/android-archives/.bundle-v21-h86de098f-Debug-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip.download`
...
Downloading `https://xamjenkinsartifact.azureedge.net/xamarin-android/xamarin-android/bin/Release/bundle-v21-h86de098f-Release-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip` to `/Users/builder/android-archives/.bundle-v21-h86de098f-Release-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip.download`.

This is unneccessary, but was a result of:

$(foreach c, $(CONFIGURATIONS), \
  $(eval $(call CREATE_THIRD_PARTY_NOTICES ...)))

Since ThirdPartyNotices.csproj has a @(ProjectReference) to
xa-prep-tasks.csproj, the build of which attempts to download the
bundle, simply executing ThirdPartyNotices.csproj was triggering a
bundle download, which is not desired.

Rework the dependencies so that by default we only create
bin/$(CONFIGURATION)/lib/xamarin.android/ThirdPartyNotices.txt, not
one for all $(CONFIGURATIONS), and move the $(CONFIGURATIONS)
logic into make leeroy-all.

An unanticipated side-effect of commit 2bd13c4 was that
`make prepare` was downloading `bundle-v*.zip` for *both*
[Debug and Release][0] configurations, even on the PR builder (which
only builds Debug by default):

[0]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-pr-builder/2610/console

	Downloading `https://xamjenkinsartifact.azureedge.net/xamarin-android/xamarin-android/bin/Debug/bundle-v21-h86de098f-Debug-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip` to `/Users/builder/android-archives/.bundle-v21-h86de098f-Debug-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip.download`
	...
	Downloading `https://xamjenkinsartifact.azureedge.net/xamarin-android/xamarin-android/bin/Release/bundle-v21-h86de098f-Release-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip` to `/Users/builder/android-archives/.bundle-v21-h86de098f-Release-Darwin-libzip=1d8b1ac,llvm=bdb3a11,mono=607cbde.zip.download`.

This is unneccessary, but was a result of:

	$(foreach c, $(CONFIGURATIONS), \
	  $(eval $(call CREATE_THIRD_PARTY_NOTICES ...)))

Since `ThirdPartyNotices.csproj` has a `@(ProjectReference)` to
`xa-prep-tasks.csproj`, the build of which attempts to download the
bundle, simply executing `ThirdPartyNotices.csproj` was triggering a
bundle download, which is not desired.

Rework the dependencies so that by default we only create
`bin/$(CONFIGURATION)/lib/xamarin.android/ThirdPartyNotices.txt`, not
one for all `$(CONFIGURATIONS)`, and move the `$(CONFIGURATIONS)`
logic into `make leeroy-all`.
@jonpryor jonpryor requested a review from grendello March 5, 2018 22:35
@jonpryor jonpryor merged commit 351ca70 into dotnet:master Mar 6, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants