-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mk/{package,publish.sh}: Do extra last-instant dirty repo checks.
`--allow-dirty` doesn't allow us to be as granular as we'd like; see rust-lang/cargo#9398 (comment). This isn't foolproof but it gets us closer to what we want. The new `mk/publish.sh` is a step towards more robust publishing with tagging, etc.
- Loading branch information
1 parent
abbd7e8
commit a05b355
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set -eux -o pipefail | ||
IFS=$'\n\t' | ||
|
||
# Make sure the current tree isn't dirty other than what's in pregenerated/. | ||
if [[ -n "$(git status --porcelain -- ':(exclude)pregenerated/')" ]]; then | ||
echo Repository is dirty. | ||
exit 1 | ||
fi | ||
cargo publish -p ring --allow-dirty |