mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
future-proof dotnet build command
see https://github.com/dotnet/sdk/issues/30624#issuecomment-1435457318
This commit is contained in:
parent
8afe5958e6
commit
8db5aaf4f3
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ def install_environment(
|
||||||
helpers.assert_no_additional_deps('dotnet', additional_dependencies)
|
helpers.assert_no_additional_deps('dotnet', additional_dependencies)
|
||||||
|
|
||||||
envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
|
envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
|
||||||
build_dir = 'pre-commit-build'
|
build_dir = prefix.path('pre-commit-build')
|
||||||
|
|
||||||
# Build & pack nupkg file
|
# Build & pack nupkg file
|
||||||
helpers.run_setup_cmd(
|
helpers.run_setup_cmd(
|
||||||
|
|
@ -69,7 +69,7 @@ def install_environment(
|
||||||
(
|
(
|
||||||
'dotnet', 'pack',
|
'dotnet', 'pack',
|
||||||
'--configuration', 'Release',
|
'--configuration', 'Release',
|
||||||
'--output', build_dir,
|
'--property', f'PackageOutputPath={build_dir}',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue