Skip to content

Commit

Permalink
Fix CODESPACE_TOKEN: unbound variable
Browse files Browse the repository at this point in the history
Revision (input-output-hk/devx): 0a5cefb.
/nix/store/2nigzj6x6d0qkzqvvyf5604g0581r8z6-ghc810-env.sh: line 1937: CODESPACE_TOKEN: unbound variable
CABAL_DIR set to /Users/runner/.cabal-devx

Notice: Hint: to reproduce this environment locally, use either: `nix develop github:input-output-hk/devx#ghc8107`, or `docker run -it -v $(pwd):/workspaces ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.ghc8107`
  • Loading branch information
yvan-sraka committed Apr 13, 2024
1 parent 5a57830 commit 2fa72da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions quirks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@
echo ""
'';
hint = flavor: ''
declare CODESPACE_TOKEN
if [ "$GITHUB_ACTIONS" = "true" ]; then
PREFIX="::notice::Hint:"
else
PREFIX="Hint:"
fi
if [ "$GITHUB_ACTIONS" = "true" ] || [ -n "$CODESPACE_TOKEN" ]; then
if [ "$GITHUB_ACTIONS" = "true" ] || declare -p CODESPACE_TOKEN >/dev/null 2>&1; then
echo "$PREFIX to reproduce this environment locally, use either:" \
"\`nix develop github:input-output-hk/devx#${flavor}\`, or" \
"\`docker run -it -v \$(pwd):/workspaces ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.${flavor}\`"
fi
if [ -n "$CODESPACE_TOKEN" ]; then
if declare -p CODESPACE_TOKEN >/dev/null 2>&1; then
echo "Quirks:"
echo -e "\tThe Haskell VSCode extension might ask you \"How do you want the extension to manage/discover HLS and the relevant toolchain?\""
echo -e "\tChoose \"Manually via PATH\", not \"Automatically via GHCup\""
Expand Down

0 comments on commit 2fa72da

Please sign in to comment.