Skip to content

Commit

Permalink
Set Golang Environment Variable
Browse files Browse the repository at this point in the history
This tackles the commit change at
nmstate/nmstate@661ffd8

Change-Id: Ie2ecaecb2eaeefeab25253ff721eee348c82886f
  • Loading branch information
fserucas committed Nov 7, 2023
1 parent 242efa0 commit bd892ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ dev-deployment:

##@ Build

.PHONY: setenv
setenv:
go env -w GOSUMDB="sum.golang.org" GOPROXY="https://proxy.golang.org,direct"

.PHONY: build
build: generate fmt vet sc build-api-doc ## Build manager binary.
build: setenv generate fmt vet sc build-api-doc ## Build manager binary.
go build -o bin/manager main.go

.PHONY: build-api-doc
Expand Down
1 change: 1 addition & 0 deletions tools/sfconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

go env -w GOSUMDB="sum.golang.org" GOPROXY="https://proxy.golang.org,direct"
go run cli/sfconfig/main.go $*

0 comments on commit bd892ca

Please sign in to comment.