Skip to content

Rename duplicate crate in workspace#950

Merged
emilio merged 2 commits intomozilla:masterfrom
gferon:master
May 7, 2024
Merged

Rename duplicate crate in workspace#950
emilio merged 2 commits intomozilla:masterfrom
gferon:master

Conversation

@gferon
Copy link
Copy Markdown
Contributor

@gferon gferon commented May 7, 2024

Otherwise, cargo prints a warning when using cbindgen as a build-dependency in my workspace:

warning: skipping duplicate package `single_crate` found at `/Users/gferon/.cargo/git/checkouts/cbindgen-4f7d248bb26fc43d/10f32b0/tests/depfile/single_crate`
warning: skipping duplicate package `single_crate` found at `/Users/gferon/.cargo/git/checkouts/cbindgen-4f7d248bb26fc43d/10f32b0/tests/depfile/single_crate_default_config`

Copy link
Copy Markdown
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

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

hmm, ok, but we should try to exclude those tests crates somehow else...

@gferon
Copy link
Copy Markdown
Contributor Author

gferon commented May 7, 2024

I added them to workspace.exclude and this seems to do the trick as well. You can still compile those crates when going in their respective directories (this means CI or dev workflows might need adjustment).

@emilio emilio added this pull request to the merge queue May 7, 2024
Merged via the queue into mozilla:master with commit a5f865d May 7, 2024
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.

2 participants