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 -u github.com/hasit/bolter error. #21

Open
xiaozhiliaoo opened this issue Sep 10, 2021 · 3 comments
Open

go get -u github.com/hasit/bolter error. #21

xiaozhiliaoo opened this issue Sep 10, 2021 · 3 comments

Comments

@xiaozhiliaoo
Copy link

when I use go get -u github.com/hasit/bolter. an error has occurred.
go get: installing executables with 'go get' in module mode is deprecated.
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

I use go version go1.17.1 windows/amd64. how to fix it?

@Hootrix
Copy link

Hootrix commented Nov 20, 2021

可以使用go install 安装

$ go install github.com/hasit/bolter@latest
$ echo 'export PATH="$HOME/go/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc

$ bolter --version
bolter version 2.0.1

or boltdbweb tool

@echung808
Copy link

Exporting PATH as above worked.

@dgivens
Copy link

dgivens commented Oct 21, 2022

Different error now with go 1.17

❯ go get -u github.com/hasit/bolter

go: downloading github.com/hasit/bolter v0.0.0-20221019173212-593eefaa56b7
go: downloading github.com/urfave/cli v1.22.1
go: downloading github.com/olekukonko/tablewriter v0.0.2
go: downloading github.com/kval-access-language/kval-boltdb v0.0.0-20170330045345-f3797777c95e
go: downloading github.com/kval-access-language/kval-parse v0.0.0-20170504112528-b96aa5a26330
go: downloading github.com/boltdb/bolt v1.3.1
go: downloading github.com/kval-access-language/kval-scanner v0.0.0-20170504112421-4f097cacd289
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/urfave/cli v1.22.10
go: downloading github.com/mattn/go-runewidth v0.0.4
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/cpuguy83/go-md2man v1.0.10
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/russross/blackfriday v1.6.0
go: downloading golang.org/x/sys v0.1.0
go: downloading github.com/rivo/uniseg v0.4.2
go get: installing executables with 'go get' in module mode is deprecated.
	Use 'go install pkg@version' instead.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
# github.com/rivo/uniseg
go/pkg/mod/github.com/rivo/uniseg@v0.4.2/properties.go:137:6: missing function body
go/pkg/mod/github.com/rivo/uniseg@v0.4.2/properties.go:137:20: syntax error: unexpected [, expecting (
note: module requires Go 1.18

With go1.18, it doesn't work at all

❯ go get -u github.com/hasit/bolter
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'.

This does work:

go install github.com/hasit/bolter@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

4 participants