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

codegen fails due to missing Cargo.toml package.version field #298

Closed
jayvdb opened this issue Dec 10, 2023 · 4 comments
Closed

codegen fails due to missing Cargo.toml package.version field #298

jayvdb opened this issue Dec 10, 2023 · 4 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Dec 10, 2023

This occurs on latest stable

install-action> ./tools/manifest.sh osv-scanner
error: failed to load manifest for workspace member `/home/jayvdb/actions/install-action/tools/codegen`

Caused by:
  failed to parse manifest at `/home/jayvdb/actions/install-action/tools/codegen/Cargo.toml`

Caused by:
  TOML parse error at line 1, column 1
    |
  1 | [package]
    | ^^^^^^^^^
  missing field `version`
@NobodyXu
Copy link
Collaborator

Perhaps setting publish = false will fix this?

@jayvdb
Copy link
Contributor Author

jayvdb commented Dec 10, 2023

👍 I'll try that

@jayvdb
Copy link
Contributor Author

jayvdb commented Dec 10, 2023

Adding publish = false doesnt help.

@taiki-e
Copy link
Owner

taiki-e commented Dec 10, 2023

The latest cargo doesn't require package.version field: rust-lang/cargo#12786

However, that does not seem to be included yet in the current stable and will be included in 1.75, which will be released later this month.

@taiki-e taiki-e closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2023
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 a pull request may close this issue.

3 participants