Skip to content

go get: installing executables with 'go get' in module mode is deprecated. #1174

Closed
@Indribell

Description

@Indribell

Version

1.10.0

What happened?

Following the blog to install sqlc:

https://docs.sqlc.dev/en/stable/overview/install.html

Results in the following error with go 1.17.0:

go get: installing executables with 'go get' in module mode is deprecated.

Relevant log output

go get github.com/kyleconroy/sqlc/cmd/sqlc
go: downloading github.com/kyleconroy/sqlc v1.10.0
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/spf13/cobra v1.2.1
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/antlr/antlr4 v0.0.0-20200209180723-1177c0b58d07
go: downloading github.com/pganalyze/pg_query_go/v2 v2.0.5
go: downloading github.com/pingcap/parser v0.0.0-20201024025010-3b2fb4b41d73
go: downloading golang.org/x/text v0.3.6
go: downloading github.com/pingcap/errors v0.11.5-0.20201021055732-210aacd3fd99
go: downloading go.uber.org/zap v1.17.0
go: downloading github.com/pingcap/log v0.0.0-20200511115504-543df19646ad
go: downloading go.uber.org/atomic v1.7.0
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/golang/protobuf v1.5.2
go get: installing executables with 'go get' in module mode is deprecated.
        To adjust and download dependencies of the current module, use 'go get -d'.
        To install using requirements of the current module, use 'go install'.
        To install ignoring the current module, 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'.

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

Linux

What database engines are you using?

MySQL

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔧 golangbugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions