Explorar o código

Fix toolchain version

世界 hai 8 meses
pai
achega
8cdb4b7c85
Modificáronse 3 ficheiros con 7 adicións e 4 borrados
  1. 2 0
      .goreleaser.yaml
  2. 5 2
      Makefile
  3. 0 2
      go.mod

+ 2 - 0
.goreleaser.yaml

@@ -24,6 +24,7 @@ builds:
       - with_tailscale
     env:
       - CGO_ENABLED=0
+      - GOTOOLCHAIN=local
     targets:
       - linux_386
       - linux_amd64_v1
@@ -62,6 +63,7 @@ builds:
     <<: *template
     env:
       - CGO_ENABLED=1
+      - GOTOOLCHAIN=local
     overrides:
       - goos: android
         goarch: arm

+ 5 - 2
Makefile

@@ -18,14 +18,17 @@ PREFIX ?= $(shell go env GOPATH)
 .PHONY: test release docs build
 
 build:
+	export GOTOOLCHAIN=local && \
 	go build $(MAIN_PARAMS) $(MAIN)
 
 ci_build_go120:
-	go build $(PARAMS) $(MAIN)
+	export GOTOOLCHAIN=local && \
+	go build $(PARAMS) $(MAIN) && \
 	go build $(PARAMS) -tags "$(TAGS_GO120)" $(MAIN)
 
 ci_build:
-	go build $(PARAMS) $(MAIN)
+	export GOTOOLCHAIN=local && \
+	go build $(PARAMS) $(MAIN) && \
 	go build $(MAIN_PARAMS) $(MAIN)
 
 generate_completions:

+ 0 - 2
go.mod

@@ -2,8 +2,6 @@ module github.com/sagernet/sing-box
 
 go 1.23.1
 
-toolchain go1.24.0
-
 require (
 	github.com/caddyserver/certmagic v0.21.7
 	github.com/cloudflare/circl v1.6.0