ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Kaleb Pace dbb579adec cli/build-rs: remove metadata command dependency in favor of env vars
When building this project with [Nix/Crane](https://github.com/ipetkov/crane/discussions/693), if the `jj-cli` dependency is specified in `Cargo.toml` as a git-based crate, `cargo vendor` splits this workspace up into sub-crate directories, which causes `cargo metadata` to fail when searching for relative deps in the workspace root.

This commit simply changes how the crate version is determined, using Cargo's built-in environment variable [`CARGO_PKG_VERSION`](https://doc.rust-lang.org/cargo/reference/environment-variables.html)
2024-09-03 22:31:17 -07:00
..
examples cleanup: remove redundant ::{self} from use declarations 2024-08-23 13:05:27 +09:00
src config: add color for renamed and copied in summary 2024-09-03 21:33:29 -05:00
testing formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
tests config: add color for renamed and copied in summary 2024-09-03 21:33:29 -05:00
build.rs cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
Cargo.toml cli/build-rs: remove metadata command dependency in favor of env vars 2024-09-03 22:31:17 -07:00
LICENSE