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

dist build fails locally with cargo-auditable = true #1663

Closed
Aloso opened this issue Dec 22, 2024 · 0 comments
Closed

dist build fails locally with cargo-auditable = true #1663

Aloso opened this issue Dec 22, 2024 · 0 comments

Comments

@Aloso
Copy link

Aloso commented Dec 22, 2024

EDIT: I found out the issue, cargo auditable was outdated, running cargo install cargo-auditable fixed the issue.


dist-workspace.toml

[workspace]
members = ["cargo:."]

# Config for 'dist'
[dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.27.0"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell", "npm", "msi"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
  "aarch64-apple-darwin",
  "aarch64-unknown-linux-gnu",
  "x86_64-apple-darwin",
  "x86_64-unknown-linux-gnu",
  "x86_64-unknown-linux-musl",
  "x86_64-pc-windows-msvc",
]
# A namespace to use when publishing this package to the npm registry
npm-scope = "@pomsky-lang"
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Whether to install an updater program
install-updater = false
# Whether to embed dependency information using cargo-auditable
cargo-auditable = true

Repository: pomsky (I just set dist up locally, so it's not yet merged)

Output:

 WARN skipping powershell installer: not building any supported platforms (use --artifacts=global)
 WARN skipping powershell installer: not building any supported platforms (use --artifacts=global)
building artifacts:
  pomsky-bin-x86_64-unknown-linux-gnu.tar.xz
  pomsky-bin-x86_64-unknown-linux-gnu.tar.xz.sha256
  source.tar.gz
  source.tar.gz.sha256
  pomsky-bin-installer.sh
  pomsky-bin-npm-package.tar.gz
  sha256.sum

building x86_64-unknown-linux-gnu target, using cargo profile dist --workspace)
warning: /home/ludwig/dev/pomsky/Cargo.toml: unused manifest key: patch.crates-io.onig_sys.revision
error: process didn't exit successfully: `/home/ludwig/.cargo/bin/cargo-auditable /home/ludwig/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc -vV` (exit status: 1)
--- stderr
Unrecognized command: "/home/ludwig/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc"


  × failed to find bin pomsky for path+file:///home/ludwig/dev/pomsky/pomsky-bin#0.11.0
  help: did the above build fail?
@Aloso Aloso closed this as completed Dec 23, 2024
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