mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
build: update Go version to 1.24.3 in Dockerfile and go.mod
This commit is contained in:
parent
c90ec8caa1
commit
4daefa19d1
5 changed files with 20 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
# Stage 1: deps
|
||||
FROM golang:1.24.2-alpine AS deps
|
||||
FROM golang:1.24.3-alpine AS deps
|
||||
HEALTHCHECK NONE
|
||||
|
||||
# package version does not matter
|
||||
|
|
16
Makefile
16
Makefile
|
@ -79,6 +79,22 @@ docker-build-test:
|
|||
get:
|
||||
for dir in ${PWD} ${PWD}/agent ${PWD}/internal/dnsproviders; do cd $$dir && go get -u ./... && go mod tidy; done
|
||||
|
||||
|
||||
go_ver := $(shell go version | cut -d' ' -f3 | cut -d'o' -f2)
|
||||
files := $(shell find . -name go.mod -type f -or -name Dockerfile -type f)
|
||||
gomod_paths := $(shell find . -name go.mod -type f | xargs dirname)
|
||||
|
||||
update-go:
|
||||
for file in ${files}; do \
|
||||
echo "updating $$file"; \
|
||||
sed -i 's|go \([0-9]\+\.[0-9]\+\.[0-9]\+\)|go ${go_ver}|g' $$file; \
|
||||
sed -i 's|FROM golang:.*-alpine|FROM golang:${go_ver}-alpine|g' $$file; \
|
||||
done
|
||||
for path in ${gomod_paths}; do \
|
||||
echo "go mod tidy $$path"; \
|
||||
cd ${PWD}/$$path && go mod tidy; \
|
||||
done
|
||||
|
||||
build:
|
||||
mkdir -p $(shell dirname ${BIN_PATH})
|
||||
cd ${PWD} && go build ${BUILD_FLAGS} -o ${BIN_PATH} ${CMD_PATH}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module github.com/yusing/go-proxy/agent
|
||||
|
||||
go 1.24.2
|
||||
go 1.24.3
|
||||
|
||||
replace github.com/yusing/go-proxy => ..
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
|||
module github.com/yusing/go-proxy
|
||||
|
||||
go 1.24.2
|
||||
go 1.24.3
|
||||
|
||||
replace github.com/yusing/go-proxy/agent => ./agent
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module github.com/yusing/go-proxy/internal/dnsproviders
|
||||
|
||||
go 1.24.2
|
||||
go 1.24.3
|
||||
|
||||
replace github.com/yusing/go-proxy => ../..
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue