Skip to content

Commit 597bf7c

Browse files
authored
Merge pull request #2836 from edelabar/main
Change deprecated `swift build` `-C` command line option to replacement `--package-path`
2 parents bb49560 + 84f040f commit 597bf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/languages/swift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def install_environment(
4444
os.mkdir(envdir)
4545
cmd_output_b(
4646
'swift', 'build',
47-
'-C', prefix.prefix_dir,
47+
'--package-path', prefix.prefix_dir,
4848
'-c', BUILD_CONFIG,
4949
'--build-path', os.path.join(envdir, BUILD_DIR),
5050
)

0 commit comments

Comments
 (0)