Skip to content

Commit

Permalink
dotnet: ignore nuget source during tool install
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Dec 12, 2022
1 parent 04225fe commit ac81e9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pre_commit/languages/dotnet.py
Expand Up @@ -57,6 +57,16 @@ def install_environment(
),
)

with open(prefix.path('nuget.config'), 'w') as f:
f.write(
'<?xml version="1.0" encoding="utf-8"?>'
'<configuration>'
' <packageSources>'
' <clear />'
' </packageSources>'
'</configuration>',
)

# Determine tool from the packaged file <tool_name>.<version>.nupkg
build_outputs = os.listdir(os.path.join(prefix.prefix_dir, build_dir))
for output in build_outputs:
Expand Down

0 comments on commit ac81e9e

Please sign in to comment.