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

Add support for wildcard dependencies for bin crates #660

Open
nitnelave opened this issue May 12, 2023 · 2 comments
Open

Add support for wildcard dependencies for bin crates #660

nitnelave opened this issue May 12, 2023 · 2 comments

Comments

@nitnelave
Copy link

I'm publishing crates for my app (https://github.com/lldap/lldap) to facilitate debian packaging. I was trying to use your action, but I immediately ran into:
Error: Error: Missing dependency 'anyhow' version field

This is fine as an error for libs, but for bin crates it's okay (the dependencies are locked in the checked-in Cargo.lock).

Right now I'm working around the error by setting specific versions in Cargo.toml, but it's not ideal (I'd like to be able to do cargo update and update all my dependencies).

@nitnelave
Copy link
Author

Also, the error message could be clearer :) I had no idea what it meant, or even that it was from this action (I thought it was from cargo metadata, the last command that ran).
I had to look into the code to see that it didn't like the wildcard.

@nitnelave
Copy link
Author

It was brought to my attention that crates.io doesn't allow wildcard versions at all. I'll just leave this open for the error message, then.

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

No branches or pull requests

1 participant