-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature nix: add option useAttrPath to use packages attribute path (#787
) * add option `useAttrPath` to support `nix-env -iA` * add test and fix problem * change to useAttributePath * bump the version * update test
- Loading branch information
Showing
5 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
uid="$(id -u)" | ||
echo "Current user UID is ${uid}." | ||
if [ "${uid}" != "1000" ]; then | ||
echo "Current user UID was adjusted." | ||
fi | ||
set +e | ||
vscode_uid="$(id -u vscode)" | ||
set -e | ||
if [ "${vscode_uid}" != "" ]; then | ||
echo "User vscode UID is ${vscode_uid}." | ||
if [ "${vscode_uid}" != "1000" ]; then | ||
echo "User vscode UID was adjusted." | ||
fi | ||
fi | ||
nix_uid="$(stat /nix -c "%u")" | ||
echo "/nix UID is ${nix_uid}." | ||
|
||
cat /etc/os-release | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "nix-env" type nix-env | ||
check "vim_installed" type vim | ||
check "node_installed" type node | ||
check "yarn_installed" type yarn | ||
|
||
# Report result | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults &2>1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters