-
Notifications
You must be signed in to change notification settings - Fork 23
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
Resolve Cargo Publish Issues #256
Comments
Exploring some solutions in the Branch, the
The GH Action mentions these checks:
|
I think it can be solved by leaving the path field and removing the version field for dev deps that are part of the workspace. We have to make sure that the workspace deps are dev-dependencies: } else if (
// throw an error if there is no path or version on dev-dependencies
kind === 'dev' &&
no_version &&
!dependency.path
) {
throw new Error(
`Missing dependency '${name}' version field`
) |
Use |
Expected Behavior
Actual Behavior
in CI
cargo publish
givesError: Error: Missing dependency 'sbtc-core' version field
.Docs: https://github.com/marketplace/actions/publish-crates
Action Code: https://github.com/katyo/publish-crates/blob/2fcfbf70241f794be7050d083dccec4edc27d754/src/package.ts#L36
Steps to Reproduce
Screenshots or Videos
The text was updated successfully, but these errors were encountered: