Open nathanielc opened 2 years ago
TIL: cargo install
ignores the lock file by default. If you do cargo install --locked
, that will work (I just verified). Will chase this a bit more later.
See also rust-lang/cargo#7169
Ran into this today :angry: More specifically, this is because we have a version range in flux-core
which causes cargo to select 0.92 for itself while lspower
is still on 0.91. So the version range doesn't seem to work as one would hope. Created https://github.com/influxdata/flux/pull/5067
lsp-types = { version = ">=0.91,<=0.92", optional = true }
(cargo issue https://github.com/rust-lang/cargo/issues/9029 )
I can
cargo build
the flux-lsp binary but I cannotcargo install
the binary. It seems to be releated to enabling thelsp
feature flag on the flux dependency.See the following terminal output: