Skip to content

Commit 118e8f8

Browse files
Renamed option to --test-tarball
1 parent 450ec31 commit 118e8f8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Stack/Options/SDistParser.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ sdistOptsParser signDefault = SDistOpts <$>
2626
switch (long "ignore-check"
2727
<> help "Do not check package for common mistakes")
2828
buildPackageOption =
29-
boolFlags False "build-package" "building of the resulting package" idm
29+
boolFlags False "test-tarball" "building of the resulting tarball" idm

test/integration/tests/717-sdist-test/Main.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ main = do
66
stack ["build"]
77
-- keep old behavior
88
stack ["sdist"]
9-
-- successful sdist with --build-package
10-
stack ["sdist", "packageb", "--build-package"]
9+
-- successful sdist with --test-tarball
10+
stack ["sdist", "packageb", "--test-tarball"]
1111
-- fails because package contains TH which depends on files which are not put into sdist tarball
12-
stackErr ["sdist", "packagea", "--build-package"]
12+
stackErr ["sdist", "packagea", "--test-tarball"]
1313
-- same, but inside a subdir
14-
stackErr ["sdist", "packagecd/packagec", "--build-package"]
14+
stackErr ["sdist", "packagecd/packagec", "--test-tarball"]
1515
-- depends on packagea and packagec - these would fail if they were the target of sdist,
1616
-- but since they are just dependencies, the operation should succeed
17-
stack ["sdist", "packagecd/packaged", "--build-package"]
17+
stack ["sdist", "packagecd/packaged", "--test-tarball"]
1818
-- fails because a test depends on files which are not put into sdist tarball
19-
stackErr ["sdist", "packagee", "--build-package"]
19+
stackErr ["sdist", "packagee", "--test-tarball"]

0 commit comments

Comments
 (0)