You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the usages of DisableSourceLink to instead check for EnableSourceLink. https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryInfo.targets#L13-L17. It appears that arcade will use the DisableSourceLink switch to properly set EnableSourceLink, and that repos should only ever test against EnableSourceLink, not DisableSourceLink. I'm not sure what the history around this is, as it seems like a very bad idea to have two opposite switches for the same feature, since essentially you have 6 possible states which can conflict. @tmat?
Enable (not set/true/false)
Disable (not set/true/false)
Don't assume EnableSourceLink is going to be true for a CI build (it isn't for source build legs)
Pass the ContinuousIntegrationBuild and OfficialBuildId switches to the inner source build command. This would usually be part of the base command, but runtime overrides that completely.
Re Source Link: EnableSourceLink is the official property owned by Source Link package.
If false the Source Link JSON file is not gonna be generated. However, even with that disabled other parts of the build might still query GIT for information (e.g. commit SHA included in version numbers). This is disabled by EnableSourceControlManagerQueries.
In Arcade DisableSourceLink is a big hammer that disables everything, including DeterministicSourcePaths.
Perhaps it could be renamed to something better. I think it was added to enable build from a .zip file that contains source of the repo, but no git info. Don't recall details though, e.g. why disabling DeterministicSourcePaths is needed.
ghost
locked as resolved and limited conversation to collaborators
Oct 13, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
7 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#75290