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

Build error - cargo_toml 0.13.0 has been yanked #1173

Closed
1 task done
jhheider opened this issue Aug 30, 2024 · 0 comments · Fixed by #1174
Closed
1 task done

Build error - cargo_toml 0.13.0 has been yanked #1173

jhheider opened this issue Aug 30, 2024 · 0 comments · Fixed by #1174
Labels
bug Something isn't working

Comments

@jhheider
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When building 1.27.0, we get the following failure:

  Installing nixpacks v1.27.0 (/Users/jacob/pkgx/pantry/builds/nixpacks.com-1.27.0)
    Updating crates.io index
error: failed to compile `nixpacks v1.27.0 (/Users/jacob/pkgx/pantry/builds/nixpacks.com-1.27.0)`, intermediate artifacts can be found at `/Users/jacob/pkgx/pantry/builds/nixpacks.com-1.27.0/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  failed to select a version for the requirement `cargo_toml = "^0.13.0"`
  candidate versions found which didn't match: 0.20.4, 0.20.3, 0.20.2, ...
  location searched: crates.io index
  required by package `nixpacks v1.27.0 (/Users/jacob/pkgx/pantry/builds/nixpacks.com-1.27.0)`
  if you are looking for the prerelease package it needs to be specified explicitly
      cargo_toml = { version = "0.19.0-beta.1" }

sed -i 's/cargo_toml = "0.13.0"/cargo_toml = "0.14.0"/' Cargo.toml restores build functionality.

To reproduce

Attempt to cargo install --path=. for 1.27.0. (providing --locked runs into different errors with proc-macro2).

Expected behavior

Successful build!

Environment

darwin/aarch64, building under pkgx, nixpacks 1.27.0.

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

Successfully merging a pull request may close this issue.

1 participant