bakape / shamichan

anonymous realtime imageboard focused on high performance and transparent moderation
Other
434 stars 74 forks source link

go get is deprecated in Go 1.17+ #1331

Open Kepler-Br opened 1 year ago

Kepler-Br commented 1 year ago
 > [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 commented 1 year ago

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 https://github.com/bakape/shamichan/issues/1331, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB347MG6NSPMT5G6P5TZFVTVZJEPFANCNFSM56SKPJTA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Kepler-Br commented 1 year ago

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