Open iocron opened 8 months ago
I think you missed this step:
Also about /usr/local/go
not being there, the tutorial is based on the recommended go installation, which if you do as in the documentation you will find the go executable there.
Thanks for reporting this and using Wails
As already mentioned the docs are based on the official 'Go Installation instructions', and it's also stated that one needs to ensure that ~/go/bin
is in PATH
.
wails command should be available/found at /usr/local/go, as mentioned in https://wails.io/docs/gettingstarted/installation but that seems to be incorrect.
I could not find the section where this is mentioned. ~
means your home directory so ~/go/bin
is basically for macOS /Users/USERNAME/go/bin/
.
I could not find the section where this is mentioned. ~ means your home directory so ~/go/bin is basically for macOS /Users/USERNAME/go/bin/.
Something seems weird, have the docs been updated (in this case the current wails docs page seems correct)? Last time I checked the wails docs mentioned /usr/local/go or maybe I mixed up something.
Usually many macOS Users prefer installing packages by using the package manager "brew" instead of manual installation steps (official Go installation instructions), maybe this can be mentioned in the docs if it makes sense.
P.S. I just used the full path (/Users/USERNAME/...) for clarity and because the tilde variable expansion does not always work in all cases.
It doesn't matter how you install Go, you will need to put Go's bin directory on your path or else you can't run anything you install via go install
.
On my system, that's $GOPATH/bin
.
Works as described.
Description
/usr/local/go does not exist after installing golang (used
brew install go
) and wails is nowhere to be found near this location after installing it. But it does exist on /Users/USERNAME/go/bin/wailsTo Reproduce
brew install go
go install github.com/wailsapp/wails/v2/cmd/wails@latest
wails version
Expected behaviour
wails command should be available/found at /usr/local/go, as mentioned in https://wails.io/docs/gettingstarted/installation but that seems to be incorrect. Instead its been found at /Users/USERNAME/go/bin/wails
Screenshots
No response
Attempted Fixes
export PATH="/Users/USERNAME/go/bin:$PATH"
System Details
Additional context
No response