Skip to content

Conversation

@aculich
Copy link
Contributor

@aculich aculich commented Sep 23, 2024

This PR addresses an issue in the setup instructions for Apple Silicon Macs. The previous configuration for GOROOT pointed to '/opt/homebrew/bin/go', which resulted in an error: 'go: cannot find GOROOT directory'.

By dynamically determining the correct GOROOT path using Homebrew's installation path, this fix ensures compatibility with M1/M2 Macs. These changes resolve the issue for users following the README on Apple Silicon Macs.

The previous instructions incorrectly set GOROOT to '/opt/homebrew/bin/go', which points to the Go binary rather than the Go root directory. This caused errors when running Go commands on Apple Silicon-based Macs.

I updated the instructions to dynamically determine the correct GOROOT path using Homebrew, ensuring compatibility across different environments. This change resolves the 'go: cannot find GOROOT directory' issue on M1/M2 Macs.
@eugeis eugeis merged commit 70aac4e into danielmiessler:main Sep 23, 2024
eugeis added a commit that referenced this pull request Oct 19, 2024
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.

2 participants