From ac81e9ee326fc2c70c3f2d4963ff91fe91bc4a9b Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Tue, 6 Dec 2022 12:45:44 +0000 Subject: [PATCH] dotnet: ignore nuget source during tool install --- pre_commit/languages/dotnet.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pre_commit/languages/dotnet.py b/pre_commit/languages/dotnet.py index 3983c6f0c..310db3da5 100644 --- a/pre_commit/languages/dotnet.py +++ b/pre_commit/languages/dotnet.py @@ -57,6 +57,16 @@ def install_environment( ), ) + with open(prefix.path('nuget.config'), 'w') as f: + f.write( + '' + '' + ' ' + ' ' + ' ' + '', + ) + # Determine tool from the packaged file ..nupkg build_outputs = os.listdir(os.path.join(prefix.prefix_dir, build_dir)) for output in build_outputs: