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

How to install now that go get is deprecated #45

Closed
luckman212 opened this issue Jul 11, 2023 · 1 comment
Closed

How to install now that go get is deprecated #45

luckman212 opened this issue Jul 11, 2023 · 1 comment
Labels
question Further information is requested

Comments

@luckman212
Copy link

This looks really neat. But I'm having trouble installing it. Anyone know of a workaround now that go get is deprecated?

  • macOS 13.4.1
  • Go 1.20.5

go get

$ go get github.com/guptarohit/asciigraph
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'.

go install

$ go install github.com/guptarohit/asciigraph@latest
package github.com/guptarohit/asciigraph is not a main package
@guptarohit
Copy link
Owner

guptarohit commented Jul 16, 2023

Hi @luckman212,

Thanks for bringing it to my attention. I've updated cli installation instruction in README, this should work for installing cli.

Otherwise, if you wanted to have it as dependency in your Go application then there has to be a go.mod file in your application before running go get command.
Command to initialise go module: go mod init <module name>

Cheers!

@guptarohit guptarohit added the question Further information is requested label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants