Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated release process in CONTRIBUTING.md #4704

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,11 @@ for `cardano-node` on 32 architecture are too high).
New versions of packages are published on [CHaP]. To release packages to
[CHaP] one should use `./scritp/release-to-chap.sh`.

* First run `./script/release-to-chap.sh -r` to see which changes will be
published. And verify that all `CHANGELOG.md` files are up-to-date.
* First run `./script/release-to-chap.sh -r` to see which changes can be
published.
* Update versions in `*.cabal` files according to changes in `CHANGELOG.md`
files.
* Update `CHANGELOG.md` files.
* Run `./script/release-to-chap.sh` which will create a PR in
`cardano-haskell-packages` repo (pointed by `CARDANO_HASKELL_PACKAGES_DIR`
environment variable or `/tmp/chap` if it's not defined).
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-with-chap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ fi
cabal_files=$(fd -ae 'cabal')
for cf in $cabal_files; do
name=$(cat $cf | grep '^name:' | awk '{ print $2 }')
version=$(ls -1 $CHAP_DIR/_sources/$name | sort | tail -1)
version=$(ls -1 $CHAP_DIR/_sources/$name | sort -V | tail -1)
tag="$name-$version"
echo "$tag ($(git rev-parse $tag))"
git restore --source="$name-$version" -- $name
revdir="$CHAP_DIR/_sources/$name/$version/revisions"
if [[ -d $revdir ]]; then
rev=$(ls $revdir | sort | tail -1)
rev=$(ls $revdir | sort -V | tail -1)
echo "copy revision $revdir/$rev to $name/$name.cabal"
cp $revdir/$rev "$name/$name.cabal"
fi
Expand Down