mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-29 21:42:23 +03:00
f8d1e70dfc
* When Nix fetches a git repo it will only look for the specified revision only starting from the main branch (apparently fetching arbitrary revisions from a repository has some security implications) * If a ref (i.e. branch or tag) is not specified, Nix will only fetch the repo's main branch * To remedy this we will supply Nix with the branch or tag (if specified in the Cargo.lock) to help it find the specified revision * If cargo does not specify a branch or tag for us, we'll set `allRefs = true` so that Nix can try fetching all possible branches and tags before trying to check out the locked revision
15 lines
381 B
TOML
15 lines
381 B
TOML
# Regression test for https://github.com/ipetkov/crane/issues/13
|
|
[package]
|
|
name = "git-rev-no-ref"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies.tokio]
|
|
git = "https://github.com/tokio-rs/tokio"
|
|
branch = "tokio-1.14.x"
|
|
|
|
[dependencies.tokio2]
|
|
git = "https://github.com/tokio-rs/tokio"
|
|
rev = "2a3c803dd1c487868eabcef547066952cc07624e" # Coming from tokio-1.13.x
|
|
package = "tokio"
|