Skip to content

Commit

Permalink
Fix the library-linkstatic-flag test
Browse files Browse the repository at this point in the history
Was failing inside a pure nix-shell because of the `file` executable missing
  • Loading branch information
Théophane Hufschmitt committed Sep 18, 2019
1 parent f78ed5e commit 1b67b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mkShell {
binutils
# check the start script for problems
shellcheck
file
] ++ lib.optionals docTools [graphviz python36Packages.sphinx zip unzip];

shellHook = ''
Expand Down
2 changes: 1 addition & 1 deletion tests/library-linkstatic-flag/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ is_dynamic () {
file --dereference -- "$1" | grep -q "dynamically linked"
res=$?
else
echo 'file found in environment, please install either' >&2
echo 'file not found in environment, please install it' >&2
exit 127
fi
return $res
Expand Down

0 comments on commit 1b67b17

Please sign in to comment.