Skip to content

Commit 82cdc58

Browse files
committed
fix: add GOPATH/bin to PATH after go install shfmt
go install succeeds but $GOPATH/bin is not in PATH for subsequent steps on ubuntu-latest runners. Appending to GITHUB_PATH makes shfmt available. https://claude.ai/code/session_01KVdk4CmanaQvKXrk3inMoV
1 parent 7925310 commit 82cdc58

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
run: sudo apt-get install -y shellcheck
1616

1717
- name: Install shfmt
18-
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
18+
run: |
19+
go install mvdan.cc/sh/v3/cmd/shfmt@latest
20+
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
1921
2022
- name: Check formatting (shfmt)
2123
run: shfmt -d setup/*.sh setup/install/*.sh

0 commit comments

Comments
 (0)