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

Cargo.lock がないため Nix でパッケージビルドできない #131

Open
shirakami-chigusa opened this issue Feb 10, 2025 · 0 comments

Comments

@shirakami-chigusa
Copy link

Nix のパッケージ (https://github.com/NixOS/nixpkgs) としてビルドする際に buildRustPackage というものを使いますが、cargoHash のチェック時に Cargo.lock が存在しないためエラーが出てしまいます。
https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md

Running phase: buildPhase

ERROR: The Cargo.lock file doesn't exist

Cargo.lock is needed to make sure that cargoHash/cargoSha256 doesn't change
when the registry is updated.

Cargo.lock.gitignore で除外されていますが、問題がなければ Cargo.lock をコミットしていただけると助かります。

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