Skip to content

Commit

Permalink
add a note about "::add-path" to known bugs
Browse files Browse the repository at this point in the history
Fixes #6.
  • Loading branch information
mvdan committed Mar 20, 2020
1 parent 234f0d2 commit fc93475
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ The `setup-go` action doesn't set `PATH`, so currently it's not possible to `go
install` a program and run it directly. Until that's fixed, consider absolute
paths like `$(go env GOPATH)/bin/program`.

An undocumented workaround is to use a built-in special string to add `GOBIN` to
the system's `PATH`. Note that `shell: bash` is supported on all platforms:

```yaml
- name: Add GOBIN to PATH
run: echo "::add-path::$(go env GOPATH)/bin"
shell: bash
```

* https://github.community/t5/GitHub-Actions/git-config-core-autocrlf-should-default-to-false/m-p/30445

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

0 comments on commit fc93475

Please sign in to comment.