Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a warning on an implicit input specification. #4072

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests to allow different build locations (e.g. macos).
  • Loading branch information
kquick committed Sep 26, 2020
commit 3a8e64d393e58c750ed8c671faa66c47f21b20f3
4 changes: 2 additions & 2 deletions tests/flakes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ cat > $flake3Dir/flake.nix <<EOF
EOF

git -C $flake3Dir add flake.nix
git -C $flake3Dir commit -m 'Update flake.nix with fluke'
git -C $flake3Dir commit -m 'Update flake.nix with noflake'

err=$flake3Dir/impl.errout
! nix build -o $TEST_ROOT/result $flake3Dir#xyzzy
! nix build -o $TEST_ROOT/result $flake3Dir#xyzzy 2>$err
cat $err
grep "warning: implicit flake:noflake input via output function argument in git+file:https:///build/nix-test/flakes/flake3" $err
grep "warning: implicit flake:noflake input via output function argument in git+file:https:///" $err
grep error $err
grep "cannot find flake 'flake:noflake' in the flake registries" $err

Expand Down