Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get does not instal on macos arm64 #6

Open
rofrol opened this issue Aug 29, 2023 · 2 comments · May be fixed by #7
Open

go get does not instal on macos arm64 #6

rofrol opened this issue Aug 29, 2023 · 2 comments · May be fixed by #7

Comments

@rofrol
Copy link

rofrol commented Aug 29, 2023

% brew install go
...
==> Fetching go
==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.21.0
#################################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:097235ed779dfe05153dff2e589b3cdd0de5f5356e6a83f273d0d51ebfb046b8
#################################################################################################################################################################### 100.0%
==> Pouring go--1.21.0.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/go/1.21.0: 12,515 files, 241.0MB
==> Running `brew cleanup go`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
% go get github.com/cube2222/jql
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
	```
@rofrol
Copy link
Author

rofrol commented Aug 29, 2023

This worked:

$ go install github.com/cube2222/jql@latest
$ export PATH=$PATH:~/go/bin/
$ cat test.json | jql '(elem "countries" (elem (keys) (elem "name")))'

@cube2222
Copy link
Owner

cube2222 commented Sep 8, 2023

Hey, thanks for the issue @rofrol!

Would you like to make a PR fixing the README to mention go install ...@latest instead of go get? You're right that that's what should be used in newer Go versions.

@rofrol rofrol linked a pull request Sep 8, 2023 that will close this issue
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 a pull request may close this issue.

2 participants