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

Installing on Linux Mint 19.3 (golang 1.10) #35

Closed
ColinMaudry opened this issue Jun 9, 2020 · 2 comments
Closed

Installing on Linux Mint 19.3 (golang 1.10) #35

ColinMaudry opened this issue Jun 9, 2020 · 2 comments
Labels
question Further information is requested

Comments

@ColinMaudry
Copy link

Hi,

I'm trying to install gojq on Mint 19.3, that comes with golang 1.10 in the repositories.

Here is the verbose output:

env GO111MODULE=on go get -v github.com/itchyny/gojq/cmd/gojq
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
golang.org/x/sys/internal/unsafeheader
github.com/pbnjay/strptime
github.com/mattn/go-runewidth
github.com/fatih/color/vendor/golang.org/x/sys/unix
golang.org/x/sys/unix
github.com/pkg/errors
github.com/alecthomas/participle/lexer
gopkg.in/yaml.v3
github.com/lestrrat-go/strftime
github.com/alecthomas/participle
github.com/itchyny/gojq
github.com/fatih/color/vendor/github.com/mattn/go-isatty
github.com/mattn/go-isatty
github.com/itchyny/go-flags
github.com/fatih/color/vendor/github.com/mattn/go-colorable
# github.com/itchyny/gojq
go/src/github.com/itchyny/gojq/func.go:606:16: undefined: strings.ReplaceAll
go/src/github.com/itchyny/gojq/func.go:639:24: undefined: strings.ReplaceAll
go/src/github.com/itchyny/gojq/func.go:1574:7: undefined: strings.ReplaceAll
github.com/fatih/color
github.com/hokaccha/go-prettyjson

The source has been downloaded to $GOPATH/src/, but I think gojq has not been built as it's not in $GOPATH/bin.

@itchyny
Copy link
Owner

itchyny commented Jun 9, 2020

Golang 1.10 is too old not supported anymore so please update your Golang version. Golang's official Release Policy says that only two latest major releases are supported. Following that policy, gojq does not support Golang 1.10.

@ColinMaudry
Copy link
Author

ColinMaudry commented Jun 9, 2020

Updating to golang 1.14 did it 🎉

I followed this guide: https://tecadmin.net/install-go-on-ubuntu/

@itchyny itchyny added the question Further information is requested label Dec 20, 2020
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