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

Issue while installing #11

Open
msoodb opened this issue Sep 3, 2023 · 3 comments
Open

Issue while installing #11

msoodb opened this issue Sep 3, 2023 · 3 comments

Comments

@msoodb
Copy link

msoodb commented Sep 3, 2023

OS: kali linux,
command: go get -u github.com/tomnomnom/fff

Error:
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'.

@msoodb
Copy link
Author

msoodb commented Sep 3, 2023

update:

Install successful.
Commands:
`git clone git@github.com:tomnomnom/fff.git
cd fff
go build
sudo cp fff /usr/bin

fff -h`

@shotgundebugging
Copy link

Or use the fix suggested in the error mesage:

go install github.com/tomnomnom/fff@latest

@DrTenma1998
Copy link

The issue you're facing occurs because starting with Go version 1.17, go get is no longer used for installing binaries. Instead, you should use go install with the module's path and version.

go install github.com/tomnomnom/fff@latest

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

No branches or pull requests

3 participants