Skip to content

Find the Go license in Homebrew installations when bundling - #42

Open
phaberest wants to merge 1 commit into
codr1:mainfrom
phaberest:fix/homebrew-go-license
Open

phaberest wants to merge 1 commit into
codr1:mainfrom
phaberest:fix/homebrew-go-license

Conversation

@phaberest

@phaberest phaberest commented Oct 26, 2026 •

Copy link
Copy Markdown

While installing the local build on my mac, npm run install:local crashed due to not finding the Go's license file.

The script looks for it at $(go env GOROOT)/LICENSE, which works with the official Go distribution but with Homebrew GOROOT points to .../libexec and the license is actually one directory up.

In the meantime a workaround was to set a symlink using

ln -s ../LICENSE "$(go env GOROOT)/LICENSE"

With this change the script checks the usual location first and then looks in the parent directory if it's not there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant