Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

go get is deprecated in Go 1.17+ #1331

Open
Kepler-Br opened this issue Aug 15, 2022 · 2 comments
Open

go get is deprecated in Go 1.17+ #1331

Kepler-Br opened this issue Aug 15, 2022 · 2 comments

Comments

@Kepler-Br
Copy link

 > [stage-0 12/34] RUN go get -u github.com/valyala/quicktemplate       github.com/rakyll/statik        github.com/valyala/quicktemplate/qtc:
#0 0.317 go: go.mod file not found in current directory or any parent directory.
#0 0.317        'go get' is no longer supported outside a module.
#0 0.317        To build and install a command, use 'go install' with a version,
#0 0.317        like 'go install example.com/cmd@latest'
#0 0.317        For more information, see https://golang.org/doc/go-get-install-deprecation
#0 0.317        or run 'go help get' or 'go help install'.

I have zero experience in Go, so I don't know how to fix this issue, but I would suggest pin golang version to 1.16 like that:

# Install Go
RUN wget -O- \
	"https://dl.google.com/go/go1.16.linux-amd64.tar.gz" \
	| tar xpz -C /usr/local
@bakape
Copy link
Owner

bakape commented Aug 15, 2022 via email

@Kepler-Br
Copy link
Author

Use go install, as the help text suggests.

On Mon, 15 Aug 2022, 17:00 Barrett Kepler, @.> wrote: > [stage-0 12/34] RUN go get -u github.com/valyala/quicktemplate github.com/rakyll/statik github.com/valyala/quicktemplate/qtc: #0 0.317 go: go.mod file not found in current directory or any parent directory. #0 0.317 'go get' is no longer supported outside a module. #0 0.317 To build and install a command, use 'go install' with a version, #0 0.317 like 'go install @.' #0 0.317 For more information, see https://golang.org/doc/go-get-install-deprecation #0 https://golang.org/doc/go-get-install-deprecation#0 0.317 or run 'go help get' or 'go help install'. I have zero experience in Go, so I don't know how to fix this issue, but I would suggest pin golang version to 1.16 like that: # Install Go RUN wget -O- \ "https://dl.google.com/go/go1.16.linux-amd64.tar.gz" \ | tar xpz -C /usr/local — Reply to this email directly, view it on GitHub <#1331>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB347MG6NSPMT5G6P5TZFVTVZJEPFANCNFSM56SKPJTA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

go install crashes on github.com/valyala/quicktemplate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants