all: upgrade from Go 1.26rc2 to Go 1.26.0
This commit is contained in:
parent
82958835ce
commit
70f8141abd
@ -1,6 +1,6 @@
|
|||||||
# For testing purposes only
|
# For testing purposes only
|
||||||
|
|
||||||
FROM golang:1.26rc2-alpine AS build-env
|
FROM golang:1.26.0-alpine AS build-env
|
||||||
|
|
||||||
WORKDIR /go/src
|
WORKDIR /go/src
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# and are in no way endorsed by Headscale's maintainers as an
|
# and are in no way endorsed by Headscale's maintainers as an
|
||||||
# official nor supported release or distribution.
|
# official nor supported release or distribution.
|
||||||
|
|
||||||
FROM docker.io/golang:1.26rc2-trixie AS builder
|
FROM docker.io/golang:1.26.0-trixie AS builder
|
||||||
ARG VERSION=dev
|
ARG VERSION=dev
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
WORKDIR /go/src/headscale
|
WORKDIR /go/src/headscale
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# This Dockerfile is more or less lifted from tailscale/tailscale
|
# This Dockerfile is more or less lifted from tailscale/tailscale
|
||||||
# to ensure a similar build process when testing the HEAD of tailscale.
|
# to ensure a similar build process when testing the HEAD of tailscale.
|
||||||
|
|
||||||
FROM golang:1.26rc2-alpine AS build-env
|
FROM golang:1.26.0-alpine AS build-env
|
||||||
|
|
||||||
WORKDIR /go/src
|
WORKDIR /go/src
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ func detectGoVersion() string {
|
|||||||
|
|
||||||
content, err := os.ReadFile(goModPath)
|
content, err := os.ReadFile(goModPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "1.26rc2"
|
return "1.26.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
lines := splitLines(string(content))
|
lines := splitLines(string(content))
|
||||||
@ -91,7 +91,7 @@ func detectGoVersion() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "1.26rc2"
|
return "1.26.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
// splitLines splits a string into lines without using strings.Split.
|
// splitLines splits a string into lines without using strings.Split.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user