Skip to content

Commit e102d2e

Browse files
authored
set GOPROXY only if it is not empty (#330)
* set GOPROXY only if it is not empty * bump year 2025 for boilerplate.go.txt
1 parent afe1da1 commit e102d2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
177177
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
178178
.PHONY: docker-buildx
179179
docker-buildx: ## Build and push docker image for the manager for cross-platform support
180-
export GOPROXY=$(GOPROXY)
180+
[ -n "$(GOPROXY)" ] && export GOPROXY=$(GOPROXY)
181181
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
182182
sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
183183
- $(CONTAINER_TOOL) buildx create --name project-v3-builder

hack/boilerplate.go.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The InftyAI Team.
2+
Copyright 2025 The InftyAI Team.
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -12,4 +12,4 @@ distributed under the License is distributed on an "AS IS" BASIS,
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
15-
*/
15+
*/

0 commit comments

Comments
 (0)