Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Mar 21, 2022
1 parent 4fc8eca commit a0276d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ jobs:
with:
nix_path: nixpkgs=channel:nixpkgs-unstable

- name: Multiline env set
run: |
set -x
v=$(printf 'hello\nworld\n')
echo "$v" | wc -l
echo "v_naive=$v" >>$GITHUB_ENV
echo "v_escaped=${v//$'\n'/'%0A'}" >>$GITHUB_ENV
- name: Multiline env check
run: |
set -x
echo "$v" | wc -l
echo "$v_naive"
echo "$v_naive" | wc -l
echo "$v_escaped="
echo "$v_escaped=" | wc -l
- name: Install Nix Packages
run: |
set -x
Expand All @@ -39,6 +56,7 @@ jobs:
done | sort | tee envs-post
tr ':' '\n' <<<$PATH | sort | tee path-post
tr ':' '\n' <<<$PYTHONPATH | sort | tee pythonpath-post
diff -u envs-pre envs-post
diff -u path-pre path-post
diff -u pythonpath-pre pythonpath-post
Expand Down
4 changes: 2 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ in { pkgs ? import (_pkgs.fetchFromGitHub {

with pkgs;

mkShell {
buildInputs = [
mkShellNoCC {
packages = [
git
gnumake
gnused
Expand Down

0 comments on commit a0276d8

Please sign in to comment.