Skip to content

Commit

Permalink
Add note about how Stack checks packages for sdist/upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Mar 8, 2025
1 parent 6374ffa commit 16f11ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions doc/commands/sdist_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ By default:
For futher information, see the
[`pvp-bounds`](../configure/yaml/non-project.md#pvp-bounds) non-project
specific configuration option documentation.

!!! note

Stack checks a package for common mistakes using checks provided by Cabal
(the library). The version of Cabal used by Stack to check may be
older than the version used by Stack to build.
5 changes: 3 additions & 2 deletions doc/commands/upload_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ uploads the package to Hackage.

By default:

* the command will check each package for common mistakes. Pass the flag
`--ignore-check` to disable such checks;
* the command will check each package for common mistakes. For further
information, see the [`stack sdist` command](sdist_command.md) documentation.
Pass the flag `--ignore-check` to disable such checks; and

* Stack will not test the resulting package archive. Pass the flag
`--test-tarball` to cause Stack to test each resulting package archive, by
Expand Down

0 comments on commit 16f11ab

Please sign in to comment.