Skip to content

[hakari] elide build metadata when printing dep versions#57

Merged
sunshowers merged 2 commits into
guppy-rs:mainfrom
benesch:elide-build-metadata
Jan 8, 2023
Merged

[hakari] elide build metadata when printing dep versions#57
sunshowers merged 2 commits into
guppy-rs:mainfrom
benesch:elide-build-metadata

Conversation

@benesch

@benesch benesch commented Jan 7, 2023

Copy link
Copy Markdown
Contributor

@sunshowers I wasn't sure how to tackle the format version stuff you mentioned in #52. The existing dep-format-version is documented to only impact the format of the workspace-hack = ... line that gets added to other crates, and now the format of dependencies in the workspace-hack crate itself. Wasn't sure if you wanted to add a new format version option, or just generalize the dep-format-version option and update the various docstrings.


This commit elides build metadata when printing dependency versions for the workspace-hack crate's Cargo.toml. Without this change, cargo build in the resulting workspace will produce a warning about superfluous build metadata (if a dependency under management has a version that includes build metadata).

Fix #52.

@sunshowers

Copy link
Copy Markdown
Member

Thanks! Going to take it from here.

@sunshowers sunshowers force-pushed the elide-build-metadata branch 2 times, most recently from 2f11fbe to be3cf38 Compare January 8, 2023 03:47
sunshowers and others added 2 commits January 7, 2023 20:13
Upcoming commits will change this code somewhat, so add some explicit
tests for every possible combination.
This commit elides build metadata when printing dependency versions for
the workspace-hack crate's Cargo.toml. Without this change, `cargo
build` in the resulting workspace will produce a warning about
superfluous build metadata (if a dependency under management has a
version that includes build metadata).

Do this behind a new format version to ensure that existing users don't
encounter breakage.

Fix guppy-rs#52.

Co-authored-by: Rain <rain@sunshowers.io>
@sunshowers sunshowers force-pushed the elide-build-metadata branch from be3cf38 to a10d53d Compare January 8, 2023 04:15
@sunshowers sunshowers merged commit 7cc3ccb into guppy-rs:main Jan 8, 2023
@benesch benesch deleted the elide-build-metadata branch January 8, 2023 05:19
@benesch

benesch commented Jan 8, 2023

Copy link
Copy Markdown
Contributor Author

🎉 ❤️ thank you so much, @sunshowers!

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.

Elide build metadata for dependencies in workspace-hack

2 participants