Skip to content

Commit a0276d8

Browse files
committed
debug
1 parent 4fc8eca commit a0276d8

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ jobs:
2121
with:
2222
nix_path: nixpkgs=channel:nixpkgs-unstable
2323

24+
- name: Multiline env set
25+
run: |
26+
set -x
27+
v=$(printf 'hello\nworld\n')
28+
echo "$v" | wc -l
29+
echo "v_naive=$v" >>$GITHUB_ENV
30+
echo "v_escaped=${v//$'\n'/'%0A'}" >>$GITHUB_ENV
31+
32+
- name: Multiline env check
33+
run: |
34+
set -x
35+
echo "$v" | wc -l
36+
echo "$v_naive"
37+
echo "$v_naive" | wc -l
38+
echo "$v_escaped="
39+
echo "$v_escaped=" | wc -l
40+
2441
- name: Install Nix Packages
2542
run: |
2643
set -x
@@ -39,6 +56,7 @@ jobs:
3956
done | sort | tee envs-post
4057
tr ':' '\n' <<<$PATH | sort | tee path-post
4158
tr ':' '\n' <<<$PYTHONPATH | sort | tee pythonpath-post
59+
4260
diff -u envs-pre envs-post
4361
diff -u path-pre path-post
4462
diff -u pythonpath-pre pythonpath-post

shell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ in { pkgs ? import (_pkgs.fetchFromGitHub {
99

1010
with pkgs;
1111

12-
mkShell {
13-
buildInputs = [
12+
mkShellNoCC {
13+
packages = [
1414
git
1515
gnumake
1616
gnused

0 commit comments

Comments
 (0)