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

update-dependencies: support multiple internal versions #4045

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

mthalman
Copy link
Member

The update-dependencies tool doesn't correctly handle updates to the test NuGet.config file when multiple internal versions are being targeted in a branch. It ends up deleting the internal configuration from a previous run.

For example, let's say you've run update-dependencies for an internal build of .NET 6. It will have updated the test NuGet.config file to include package source and credentials named dotnet6_0_internal. After committing those changes you then run update-dependencies again, this time targeting an internal build of .NET 7. Doing that will remove the dotnet6_0_internal entries and replace them with dotnet7_0_internal. This will cause testing to fail for .NET 6 because it won't have access to the internal .NET 6 NuGet feed.

The fix is to simply change the update logic to be additive and not remove existing entries.

@mthalman
Copy link
Member Author

/azp run dotnet-docker-nightly-pr

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mthalman mthalman merged commit 7210f55 into dotnet:nightly Aug 31, 2022
@mthalman mthalman deleted the update-deps-nuget-config branch August 31, 2022 13:59
mthalman added a commit to mthalman/dotnet-docker that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants