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

[BUG] cargo install toml-bombadil fails with compile error #259

Open
flying-sheep opened this issue Jun 10, 2023 · 6 comments
Open

[BUG] cargo install toml-bombadil fails with compile error #259

flying-sheep opened this issue Jun 10, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@flying-sheep
Copy link

Describe the bug

   Compiling toml-bombadil v3.1.0
error[E0432]: unresolved import `watchexec::ignore`
   --> /Users/philipp.angerer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/toml-bombadil-3.1.0/src/lib.rs:224:13
    |
224 |             ignore,
    |             ^^^^^^ no `ignore` in the root

To Reproduce

cargo install toml-bombadil
@flying-sheep flying-sheep added the bug Something isn't working label Jun 10, 2023
@HarlemSquirrel
Copy link

I just discovered this library after using the Python dotfiles for years. It sounds awesome but I hit this snag on a fresh Pop OS install.

@HarlemSquirrel
Copy link

Looks like we may just need a new version published. I was able to build and install from main

cargo install toml-bombadil --git https://github.com/oknozor/toml-bombadil.git --branch main

@MohsenNz
Copy link

MohsenNz commented Jan 8, 2024

I have this problem too on ubuntu 23.04 with rustc/cargo version 1.75.0

@MohsenNz
Copy link

MohsenNz commented Jan 8, 2024

Looks like we may just need a new version published. I was able to build and install from main

cargo install toml-bombadil --git https://github.com/oknozor/toml-bombadil.git --branch main

Thank you it worked for me.

@flying-sheep
Copy link
Author

Would still be great to get a new release @oknozor

@nhu
Copy link

nhu commented Apr 28, 2024

Hi all,

Install your tools always with a --locked or --frozen flag if you want to avoid the resolution of dependencies and use the same versions of dependencies the developer did during publishing to crates.io.

cargo install --locked toml-bombadil

https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile

Actually you should not treat this as a bug. It is more an issue what the user expects when invoking cargo install.
See, if you just install with cargo install toml-bombadil cargo does not take the Cargo.lock into account, which means it's trying to resolve the latest compatible versions of dependencies.
If one of the dependencies does not respect SemVer, or violated SemVer somehow, this will result in a non compilable state.
The same is true if the Cargo.toml version patterns are not correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants