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

bevy_lint cannot be published due to Git dependency #150

Open
BD103 opened this issue Oct 16, 2024 · 1 comment
Open

bevy_lint cannot be published due to Git dependency #150

BD103 opened this issue Oct 16, 2024 · 1 comment
Labels
A-Linter Related to the linter and custom lints C-Bug A bug in the program

Comments

@BD103
Copy link
Member

BD103 commented Oct 16, 2024

bevy_lint cannot be published to https://crates.io because it has a dependency on clippy_utils, which is only in a Git repository.

# Contains a series of useful utilities when writing lints. The version and commit were chosen to
# work with the currently pinned nightly Rust version. When the Rust version changes, this too
# needs to be updated!
[dependencies.clippy_utils]
version = "=0.1.82"
git = "https://github.com/rust-lang/rust-clippy"
rev = "e8ac4ea4187498052849531b86114a1eec5314a1"

$ cargo publish --dry-run
    Updating crates.io index
   Packaging bevy_lint v0.1.0-dev (/Users/bdeep/dev/bevy/bevy_cli/bevy_lint)
    Updating crates.io index
error: failed to prepare local package for uploading

Caused by:
  failed to select a version for the requirement `clippy_utils = "=0.1.82"`
  candidate versions found which didn't match: 0.0.1
  location searched: crates.io index
  required by package `bevy_lint v0.1.0-dev (/Users/bdeep/dev/bevy/bevy_cli/bevy_lint)`
@BD103 BD103 added A-Linter Related to the linter and custom lints C-Bug A bug in the program labels Oct 16, 2024
@BD103 BD103 added this to the `bevy_lint` 0.1.0 milestone Oct 16, 2024
@alice-i-cecile
Copy link
Member

Can we open a request upstream to publish this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Related to the linter and custom lints C-Bug A bug in the program
Projects
None yet
Development

No branches or pull requests

2 participants