mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 16:56:49 +09:00
docker: let the tailscale builders fetch a newer toolchain
Both stages compile a tailscale tree cloned from an unpinned branch. The
golang images set GOTOOLCHAIN=local, so the moment upstream raises its go
directive the build fails outright instead of fetching a toolchain.
(cherry picked from commit e40f47abbf)
This commit is contained in:
1 parent
a4f854f721
commit
733d544b1c
2 files changed
+12
No files matched your search
@@ -2,6 +2,12 @@
|
||||
|
||||
FROM golang:1.27.1-alpine AS build-env
|
||||
|
||||
# The builder pin is a floor, not a ceiling: this stage compiles a tailscale
|
||||
# tree cloned from an unpinned branch, which can raise its go directive at any
|
||||
# time. The golang images set GOTOOLCHAIN=local, which turns that into a hard
|
||||
# build failure rather than a toolchain fetch.
|
||||
ENV GOTOOLCHAIN=auto
|
||||
|
||||
WORKDIR /go/src
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
|
||||
FROM golang:1.27.1-alpine AS build-env
|
||||
|
||||
# The builder pin is a floor, not a ceiling: this stage compiles a tailscale
|
||||
# tree cloned from an unpinned branch, which can raise its go directive at any
|
||||
# time. The golang images set GOTOOLCHAIN=local, which turns that into a hard
|
||||
# build failure rather than a toolchain fetch.
|
||||
ENV GOTOOLCHAIN=auto
|
||||
|
||||
WORKDIR /go/src
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
Reference in new issue
Block a user