Skip to content

Commit 9d2a670

Browse files
LaPingvinodeadprogram
authored andcommitted
Making GOPATH command work on newer systems
When installing Go out of the box, setting a GOPATH isn't necessary any more, but the internal one is still being used for go get, which is in $HOME/go. To access GOPATH also when it is not set in the shell you use, use go env GOPATH instead of $GOPATH.
1 parent 5a054b6 commit 9d2a670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/getting-started/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Now, obtain the TinyGo source code, which should also obtain the various needed
146146

147147
```shell
148148
go get -d -u github.com/tinygo-org/tinygo
149-
cd $GOPATH/src/github.com/tinygo-org/tinygo
149+
cd $(go env GOPATH)/src/github.com/tinygo-org/tinygo
150150
```
151151

152152
You now have two options: build LLVM manually or use a LLVM distributed with

0 commit comments

Comments
 (0)