20 lines
471 B
Makefile
20 lines
471 B
Makefile
default: build
|
|
|
|
export GOOS=linux
|
|
export GOARCH=arm
|
|
export GOARM=6
|
|
export CGO_ENABLED=0
|
|
|
|
build:
|
|
@go build -o out/out main.go
|
|
|
|
export GO111MODULE=on
|
|
export GOPRIVATE=gitea.unprism.ru/KRBL/*\
|
|
# In my case even setting up "url.git@gitea.unprism.ru:8022/.insteadof=https://gitea.unprism.ru/" did not help and git continued to use https instead of ssh
|
|
# So just go to config(location is listed in error message) and change the URL yourself
|
|
|
|
get:
|
|
go get .
|
|
|
|
update:
|
|
go get -u
|