This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
"ExternalRestoreSources" needs to be set in the docker container #8602
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.
Follow-up action completed:
ExternalRestoreSources is set as an VSO variable and removed as a property from BuildArguments in AllLinux: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?context=allDefinitions&path=%5CDotNet%5CCLI%5Cmaster&definitionId=7254
The "ExternalRestoreSources" value needs to be set in the internal call to 'build.sh'. Another way to say this is: since 'build.sh' writes a new Nuget.Config for the 'SandBox' working directory; "ExternalRestoreSources" needs to be set in the docker container.
Final fix:
Using an environmental variable to communicate "ExternalRestoreSources" to the docker container.
Follow-up:
Add "ExternalRestoreSources" as a VSO variable to: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?context=allDefinitions&path=%5CDotNet%5CCLI%5Cmaster&definitionId=7254
Testing - with "20180213-02" orchestrated build inputs:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1381420 FAILED
New test build:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1381703 FAILED
Reference: dotnet/msbuild#1622
Passing the 'ExternalRestoreSource's property explictly is not working as msbuild turns the URL into a local path by turning "//" into "/"
Final try:
https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1382529 SUCCESS