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

[workspace-hack] use workspace-dotted format and a patch directive #986

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Oct 4, 2023

Similar to oxidecomputer/omicron#4197, this PR
has two changes:

  1. Switch to the workspace-dotted format (.workspace = true) for
    uniformity with the rest of crucible. This is new in cargo-hakari
    0.9.28.

  2. Use a patch directive, which means that the workspace-hack only
    applies while building within this workspace. If another workspace
    imports a crate from here via a git dependency, it will not have the
    workspace-hack applied to it (instead, it will use this empty crate
    on crates.io). Thanks so much to @pfmooney for this
    suggestion!

Created using spr 1.3.4
agent-client/Cargo.toml Outdated Show resolved Hide resolved
Created using spr 1.3.4
Copy link
Contributor

@leftwo leftwo left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

@sunshowers sunshowers merged commit 6322a22 into main Oct 4, 2023
@sunshowers sunshowers deleted the sunshowers/spr/workspace-hack-use-workspace-dotted-format-and-a-patch-directive branch October 4, 2023 18:47
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