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

Update the release script #1952

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Update the release script #1952

merged 1 commit into from
Jun 11, 2024

Conversation

yannham
Copy link
Member

@yannham yannham commented Jun 11, 2024

Update the release script by adding some missing git add, which were lost when switching to using Topiary from crates.io (#1919).

Doing so, we also remove the --dry-run step before publishing: the usual workflow is to perform the dry run test, and if it succeeds, immediately do the actual publication. This isn't very useful: if the dry run fails, we could have run the actual publication as well, which would have fail in the same way, so this makes no difference. However, if the dry run succeeds, we recompile each package one more time from scratch, performing the exact same work for the actual cargo publish, which is wasteful. At this point of the release script, we clearly intend to release and we should just use cargo publish directly.

Update the release script by adding some missing `git add`, which were
lost when switching to using Topiary from crates.io.

Doing so, we also remove the `--dry-run` step before publishing: the
usual workflow is to perform the dry run test, and if it succeeds,
immediately do the actual publication. This isn't very useful: if the
dry run fails, we could have run the actual publication as well, which
would have fail in the same way, so this makes no difference. However,
if the dry run succeeds, we recompile each package one more time from
scratch, performing the exact same work for publication, which is
wasteful. At this point of the release script, we clearly intend to
release and we should just use `cargo publish` normally.
@yannham yannham requested review from jneem and vkleen June 11, 2024 13:58
@github-actions github-actions bot temporarily deployed to pull request June 11, 2024 14:01 Inactive
@yannham yannham added this pull request to the merge queue Jun 11, 2024
Merged via the queue into master with commit 7f9eb5a Jun 11, 2024
5 checks passed
@yannham yannham deleted the chore/update-release-script branch June 11, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants