crane/extra-tests/fetch-cargo-git/test.sh
Zhaofeng Li 2e24bc6591
downloadCargoPackageFromGit: Ignore crates with duplicate package IDs (#158)
For example, the Cargo git repo contains multiple "case" Cargo.toml
files in the testsuite. Let's ignore them like what Cargo does [1].

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2022-11-09 18:12:34 -08:00

12 lines
191 B
Bash
Executable File

#!/bin/sh
set -eu
scriptDir=$(dirname "$0")
cd "${scriptDir}"
craneOverride="--override-input crane ../.."
# Try fetching the git verision of cargo
nix build ${craneOverride} .#cargo-git