mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-25 16:48:57 -05:00
future-proof dotnet build command
see https://github.com/dotnet/sdk/issues/30624#issuecomment-1435457318
This commit is contained in:
@@ -61,7 +61,7 @@ def install_environment(
|
||||
helpers.assert_no_additional_deps('dotnet', additional_dependencies)
|
||||
|
||||
envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
|
||||
build_dir = 'pre-commit-build'
|
||||
build_dir = prefix.path('pre-commit-build')
|
||||
|
||||
# Build & pack nupkg file
|
||||
helpers.run_setup_cmd(
|
||||
@@ -69,7 +69,7 @@ def install_environment(
|
||||
(
|
||||
'dotnet', 'pack',
|
||||
'--configuration', 'Release',
|
||||
'--output', build_dir,
|
||||
'--property', f'PackageOutputPath={build_dir}',
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user