Add default-run failing test

This commit is contained in:
Nicolas Mattia 2020-11-13 12:26:48 +01:00
parent ff6a6c73e1
commit f5ecd757b3
5 changed files with 27 additions and 0 deletions

View file

@ -141,6 +141,11 @@ let
src = ./test/workspace-build-rs; src = ./test/workspace-build-rs;
doCheck = true; doCheck = true;
}; };
default-run = naersk.buildPackage {
src = ./test/default-run;
doCheck = true;
};
}; };
# extra crates, that are kinda slow to build # extra crates, that are kinda slow to build

5
test/default-run/Cargo.lock generated Normal file
View file

@ -0,0 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "default-run"
version = "0.1.0"

View file

@ -0,0 +1,11 @@
# Tests that default-run doesn't break the dependency build, see
# https://github.com/nmattia/naersk/issues/123
[package]
name = "default-run"
version = "0.1.0"
authors = ["nicolas <nicolas@nmattia.com>"]
edition = "2018"
default-run = "other"
[dependencies]

View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, other!");
}

View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}