Skip to content

dotnet: ignore nuget source during tool install#2642

Merged
asottile merged 1 commit intopre-commit:mainfrom
rkm:fix/dotnet-nuget-config
Dec 21, 2022
Merged

dotnet: ignore nuget source during tool install#2642
asottile merged 1 commit intopre-commit:mainfrom
rkm:fix/dotnet-nuget-config

Conversation

@rkm
Copy link
Copy Markdown
Contributor

@rkm rkm commented Dec 12, 2022

(Recreated from #2631)

Removes nuget.org from the default lookup configuration so package resolution is performed against the local build_dir only.

This fixes an issue where dotnet attempts to install unwanted packages or older versions, as nuget.org has higher precedence than the specified sources.

@asottile asottile force-pushed the fix/dotnet-nuget-config branch from 621bd01 to c38e0c7 Compare December 21, 2022 19:26
Copy link
Copy Markdown
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile asottile merged commit bb27ea3 into pre-commit:main Dec 21, 2022
@rkm rkm deleted the fix/dotnet-nuget-config branch December 22, 2022 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants