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

nix: crane emitting a warning about version field #9029

Closed
colemickens opened this issue Dec 7, 2023 · 0 comments · Fixed by #9013
Closed

nix: crane emitting a warning about version field #9029

colemickens opened this issue Dec 7, 2023 · 0 comments · Fixed by #9013
Labels
A-packaging Area: Packaging and bundling C-bug Category: This is a bug

Comments

@colemickens
Copy link

Summary

Hi, I'm seeing this in my builds:


trace: warning: crane will use a placeholder value since `version` cannot be found in /nix/store/5ra9k4mi6a0ff2vgbhwc3pf1ja4sxll2-Cargo.toml
to silence this warning consider one of the following:
- setting `version = "...";` in the derivation arguments explicitly
- setting `package.version = "..."` or `workspace.package.version = "..."` in the root Cargo.toml
- explicitly looking up the values from a different Cargo.toml via
  `craneLib.crateNameFromCargoToml { cargoToml = ./path/to/Cargo.toml; }`

To find the source of this warning, rerun nix with:
`NIX_ABORT_ON_WARN=1 nix --option pure-eval false --show-trace ...`

cracking on the Cargo.toml shown indicates it's likely coming from Helix.

Reproduction Steps

Build the flake currently.

Helix log

n/a

Platform

Nix (NixOS)

Terminal Emulator

n/a, but alacritty/rio/wezterm

Installation Method

flake-in-tree

Helix Version

b81aacc (from flake.lock)

@colemickens colemickens added the C-bug Category: This is a bug label Dec 7, 2023
@the-mikedavis the-mikedavis linked a pull request Dec 7, 2023 that will close this issue
@the-mikedavis the-mikedavis added the A-packaging Area: Packaging and bundling label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants