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 option unmodified-only to publish only "hasn't modified since the version change"-crates #665

Closed
boozook opened this issue Sep 12, 2023 · 4 comments

Comments

@boozook
Copy link
Contributor

boozook commented Sep 12, 2023

Not all devs have ideal workflow/pipeline where they can publish entire workspace in one time and all crates bumped just just moment ago.
I suppose this option would be useful for cases where development over crates going in parallel (or concurrent?).

It seems package 'foo' modified since '0.1.0' so new version should be published

Seems #662 is related issue.

@boozook boozook changed the title Add option unmodified to publish only "hasn't modified since the version change"-crates Add option unmodified-only to publish only "hasn't modified since the version change"-crates Sep 12, 2023
@katyo
Copy link
Owner

katyo commented Sep 13, 2023

@boozook To prevent publishing specific crate you can simply leave the version unchanged. Only new (changed) versions will be published.

@boozook
Copy link
Contributor Author

boozook commented Sep 13, 2023

I tried it with check-repo and get failure with mentioned error It seems package 'foo' modified since '0.1.0' so new version should be published. Perhaps I don't understand how it works... 🤔

@katyo
Copy link
Owner

katyo commented Sep 13, 2023

@boozook Have you tried ignore-unpublished-changes?
Setting check-repo to false also helps ignoring local changes when version does not bumped.

@boozook
Copy link
Contributor Author

boozook commented Sep 13, 2023

It works 👍
Thank you.

@boozook boozook closed this as completed Sep 13, 2023
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

No branches or pull requests

2 participants