Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.14 #10467

Merged
merged 26 commits into from
Mar 20, 2020
Merged

go 1.14 #10467

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
367e043
go 1.14
techknowlogick Feb 26, 2020
4cec411
go 1.12 is now lowest we support
techknowlogick Feb 26, 2020
7f96296
Merge branch 'master' into go-1.14
sapk Feb 27, 2020
6c7d05d
update docs
techknowlogick Mar 3, 2020
0998a0d
update docs
techknowlogick Mar 3, 2020
82a4d57
make vendor
techknowlogick Mar 3, 2020
ce9b535
Merge branch 'master' into go-1.14
techknowlogick Mar 3, 2020
5bb7992
make vendor
techknowlogick Mar 3, 2020
1030613
Merge branch 'master' into go-1.14
lunny Mar 3, 2020
a95c8e5
Merge branch 'master' into go-1.14
lafriks Mar 4, 2020
53cc5b1
Merge branch 'master' of github.com:go-gitea/gitea into go-1.14
jolheiser Mar 5, 2020
e87db01
Update go versions in docs
jolheiser Mar 5, 2020
5933dc4
update golang.org/x/sys deps
techknowlogick Mar 5, 2020
ffb38a1
Merge branch 'go-1.14' of github.com:techknowlogick/gitea into go-1.14
techknowlogick Mar 5, 2020
25c109c
Merge branch 'master' into go-1.14
techknowlogick Mar 5, 2020
919173c
target specifc go version with xgo
techknowlogick Mar 5, 2020
4f7def0
Merge branch 'master' into go-1.14
lafriks Mar 5, 2020
187cf47
Merge branch 'master' into go-1.14
techknowlogick Mar 9, 2020
144d150
Merge branch 'master' into go-1.14
techknowlogick Mar 9, 2020
1e15d95
split tool versions out as variable
techknowlogick Mar 9, 2020
a4041bf
make vendor
techknowlogick Mar 9, 2020
38ae765
-u x/net
techknowlogick Mar 9, 2020
e0fa30f
Merge branch 'master' into go-1.14
techknowlogick Mar 19, 2020
594ed33
make vendor
techknowlogick Mar 19, 2020
0a38de3
Merge branch 'master' into go-1.14
techknowlogick Mar 19, 2020
8d4b98d
Merge branch 'master' into go-1.14
techknowlogick Mar 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
split tool versions out as variable
  • Loading branch information
techknowlogick committed Mar 9, 2020
commit 1e15d955927ddb39b3f468ac606edee5be536248
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ steps:

- name: static
pull: always
image: techknowlogick/xgo:latest
image: techknowlogick/xgo:go-1.14.x
commands:
- apt update && apt -y install curl
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
Expand Down Expand Up @@ -477,7 +477,7 @@ steps:

- name: static
pull: always
image: techknowlogick/xgo:latest
image: techknowlogick/xgo:go-1.14.x
commands:
- apt update && apt -y install curl
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
Expand Down
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ SHASUM ?= shasum -a 256
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
COMMA := ,

XGO_VERSION := go-1.14.x
MIN_GO_VERSION := 001012000
MIN_NODE_VERSION := 010000000

ifeq ($(HAS_GO), GO)
GOPATH ?= $(shell $(GO) env GOPATH)
export PATH := $(GOPATH)/bin:$(PATH)
Expand Down Expand Up @@ -145,7 +149,7 @@ help:
.PHONY: go-check
go-check:
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');))
@if [ "$(GO_VERSION)" -lt "001012000" ]; then \
@if [ "$(GO_VERSION)" -lt "$(MIN_GO_VERSION)" ]; then \
echo "Gitea requires Go 1.12 or greater to build. You can get it at https://golang.org/dl/"; \
exit 1; \
fi
Expand All @@ -161,7 +165,7 @@ git-check:
node-check:
$(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?' | tr '.' ' ');))
$(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1))
@if [ "$(NODE_VERSION)" -lt "010000000" -o "$(NPM_MISSING)" = "1" ]; then \
@if [ "$(NODE_VERSION)" -lt "$(MIN_NODE_VERSION)" -o "$(NPM_MISSING)" = "1" ]; then \
echo "Gitea requires Node.js 10 or greater and npm to build. You can get it at https://nodejs.org/en/download/"; \
exit 1; \
fi
Expand Down Expand Up @@ -480,7 +484,7 @@ release-windows: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
xgo -go go-1.14 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
Expand All @@ -490,7 +494,7 @@ release-linux: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
xgo -go go-1.14 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out gitea-$(VERSION) .
xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
Expand All @@ -500,7 +504,7 @@ release-darwin: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
xgo -go go-1.14 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
Expand Down