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

go get is deprecated in Go 1.17+ #1331

@Kepler-Br

Description

@Kepler-Br
 > [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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions