Skip to content

Commit fc93475

Browse files
committed
add a note about "::add-path" to known bugs
Fixes #6.
1 parent 234f0d2 commit fc93475

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ The `setup-go` action doesn't set `PATH`, so currently it's not possible to `go
177177
install` a program and run it directly. Until that's fixed, consider absolute
178178
paths like `$(go env GOPATH)/bin/program`.
179179

180+
An undocumented workaround is to use a built-in special string to add `GOBIN` to
181+
the system's `PATH`. Note that `shell: bash` is supported on all platforms:
182+
183+
```yaml
184+
- name: Add GOBIN to PATH
185+
run: echo "::add-path::$(go env GOPATH)/bin"
186+
shell: bash
187+
```
188+
180189
* https://github.community/t5/GitHub-Actions/git-config-core-autocrlf-should-default-to-false/m-p/30445
181190

182191
`git config core.autocrlf` defaults to true, so be careful about CRLF endings in

0 commit comments

Comments
 (0)