mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
dotnet: ignore nuget source during tool install
This commit is contained in:
parent
cb0bcfd67f
commit
cae12b7641
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
# Determine tool from the packaged file <tool_name>.<version>.nupkg
|
||||||
build_outputs = os.listdir(os.path.join(prefix.prefix_dir, build_dir))
|
build_outputs = os.listdir(os.path.join(prefix.prefix_dir, build_dir))
|
||||||
for output in build_outputs:
|
for output in build_outputs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue