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

autopublish: Increment minor version instead of patch version #14815

Closed

Conversation

davidlattimore
Copy link
Contributor

@davidlattimore davidlattimore commented May 16, 2023

The workflow is currently failing because it's trying to publish 0.0.16, while the last version published was 0.0.149.

The workflow is currently failing because it's trying to publish 0.0.16,
while the last version published was 0.0.149.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 16, 2023
@davidlattimore
Copy link
Contributor Author

Happy to add an offset to github.run_number if you prefer

@lnicola
Copy link
Member

lnicola commented May 16, 2023

Somewhere else we're publishing only on changes to the version number, that might be another option.

@davidlattimore
Copy link
Contributor Author

Somewhere else we're publishing only on changes to the version number, that might be another option.

That's true, although assuming I'm understanding correctly, that would mean a PR each time we wanted to release to crates.io.

@lnicola
Copy link
Member

lnicola commented May 17, 2023

It would, but we don't usually release without changes, and we can ask contributors to bump the version.

The bigger problem is that xaction is looking at the tags instead of querying crates.io.

@davidlattimore
Copy link
Contributor Author

If someone made a change to a lower-level crate, such as ra_ap_stdx and they're thus bumping its version, would they then need to bump the version of ra_ap_stdx used by all the crates that depend on it? It seems like that might require a bit of work on the part of people making a change. It'd also perhaps result in more merge conflicts. I'd gotten the impression that publishing rust-analyzer to crates.io was somewhat of a secondary concern. Just autopublishing everything once per week has the nice outcome that nobody really needs to think about it (except when it breaks).

@davidlattimore
Copy link
Contributor Author

I also posted #14827 to just apply an offset, in case that's preferable to using setting the minor version number.

@Veykril
Copy link
Member

Veykril commented May 28, 2023

So if i see this right the cause was us renaming the workflow right? In that case I'd say we should just go with #14827 for now, that way we are back to the old behevior if I understand this correctly

@davidlattimore
Copy link
Contributor Author

So if i see this right the cause was us renaming the workflow right? In that case I'd say we should just go with #14827 for now, that way we are back to the old behevior if I understand this correctly

That's my understanding. It wasn't obvious initially because autopublishing was broken for a different reason - specifically the switch to use workspace.dependencies for local dependencies (bed4db3) broke publishing because cargo-workspaces didn't support automatic renaming of workspace dependencies. I fixed that in cargo-workspaces and that's when this problem showed up instead.

I'll close this PR is favour of #14827.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants