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

Add a publish subcommand to the xtask (which performs a dry-run by default) #2539

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

jessebraham
Copy link
Member

Seems to work as far as I can tell 😅

@jessebraham
Copy link
Member Author

Considered adding a publish command instead which optionally allows for dry run, but I'm afraid I'll forget the argument. Can invert the logic I guess, but something like cargo publish --publish seems weird 😅 Open to suggestions here

@jessebraham jessebraham changed the title Add dry-run subcommand to xtask to run cargo publish --dry-run with required arguments Add a publish subcommand to the xtask (which performs a dry-run by default) Nov 14, 2024
@jessebraham
Copy link
Member Author

Okay I ended up changing it to publish, which performs a dry-run by default but can optionally be supplied --no-dry-run. This command is a bit spicy but will be handy I guess 😅

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Okay I ended up changing it to publish, which performs a dry-run by default but can optionally be supplied --no-dry-run

I think this is the most sane option, it should avoid most issues - worst case we can always yank the release if we mess up somewhere.

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, just a nitpick suggestion that can totally be ignored

xtask/src/main.rs Outdated Show resolved Hide resolved
Co-authored-by: Sergio Gasquez Arcos <[email protected]>
@jessebraham jessebraham added this pull request to the merge queue Nov 14, 2024
Merged via the queue into esp-rs:main with commit d68550c Nov 14, 2024
28 checks passed
@jessebraham jessebraham deleted the feature/xtask branch November 14, 2024 12:14
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.

3 participants