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

Breaking change in cargo_util 0.1.3, in semver-minor version! #10803

Closed
steffahn opened this issue Jun 30, 2022 · 4 comments
Closed

Breaking change in cargo_util 0.1.3, in semver-minor version! #10803

steffahn opened this issue Jun 30, 2022 · 4 comments
Labels
C-bug Category: bug P-high Priority: High regression-from-stable-to-stable Regression in stable that worked in a previous stable release.

Comments

@steffahn
Copy link
Member

steffahn commented Jun 30, 2022

Problem

ProcessBuilder::get_args returns an impl Iterator<Item = &OsString> now, whereas previously, it returned &[OsString].

This has the effect that non-locked builds of cargo-outdated and cargo-geiger fail (these crates are depending on cargo 1.61 or 1.60).

@ehuss
Copy link
Contributor

ehuss commented Jun 30, 2022

Apologies for that, we need to be more vigilant in handling versions around here.

I'll start the process of getting a version bump and yanking 0.1.3 of cargo-util.

@ehuss ehuss added P-high Priority: High regression-from-stable-to-stable Regression in stable that worked in a previous stable release. labels Jun 30, 2022
bors added a commit that referenced this issue Jul 1, 2022
[STABLE-1.62] Bump cargo util stable

This is a stable backport of #10804. This uses version 0.2.0 compared to 0.2.1 on beta since beta has had some minor (compatible) changes.

cc #10803
bors added a commit that referenced this issue Jul 1, 2022
[BETA-1.63] Bump cargo-util version.

This is a beta backport of #10804.  There is no version different between here and #10804 as there haven't been any changes since the branch was made a week ago.

cc #10803
@ehuss
Copy link
Contributor

ehuss commented Jul 1, 2022

I have yanked cargo-util 0.1.3 and cargo 0.63.0 and published new versions (0.2.0 and 0.63.1 respectively).
Please let me know if you have any issues.

Closing as fixed by #10806.

@ehuss ehuss closed this as completed Jul 1, 2022
bors added a commit that referenced this issue Jul 1, 2022
Bump cargo-util version.

#10546 made a semver-incompatible change to the API of `ProcessBuilder::get_args`. Unfortunately we did not catch that until it was published. This bumps the version of cargo-util to 0.2.1 to accommodate that change. Stable will get version 0.2.0 so that the changes on beta can be released as 0.2.1 in their own time.

cc #10803
@sdroege
Copy link
Contributor

sdroege commented Jul 1, 2022

That fixes it, thanks!

@steffahn
Copy link
Member Author

steffahn commented Jul 1, 2022

Can confirm this resolves the problems :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug P-high Priority: High regression-from-stable-to-stable Regression in stable that worked in a previous stable release.
Projects
None yet
Development

No branches or pull requests

3 participants