Skip to content

Commit 360aff4

Browse files
authored
Merge pull request #8324 from ipfs/update-go-on-ci-guseggert
ci: upgrade to Go 1.16.7 on CI
2 parents 299fc0b + 70b3882 commit 360aff4

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.circleci/config.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ default_environment: &default_environment
3333
executors:
3434
golang:
3535
docker:
36-
- image: circleci/golang:1.15.2
36+
- image: cimg/go:1.16.7
3737
working_directory: ~/ipfs/go-ipfs
3838
environment:
3939
<<: *default_environment
@@ -58,7 +58,7 @@ executors:
5858
E2E_IPFSD_TYPE: go
5959
dockerizer:
6060
docker:
61-
- image: circleci/golang:1.15.2
61+
- image: cimg/go:1.16.7
6262
environment:
6363
IMAGE_NAME: ipfs/go-ipfs
6464
WIP_IMAGE_TAG: wip
@@ -118,6 +118,7 @@ jobs:
118118
sharness:
119119
machine:
120120
image: ubuntu-2004:202010-01
121+
resource_class: 2xlarge
121122
working_directory: ~/ipfs/go-ipfs
122123
environment:
123124
<<: *default_environment
@@ -126,6 +127,12 @@ jobs:
126127
TEST_VERBOSE: 1
127128
steps:
128129
- run: sudo apt update
130+
- run: |
131+
mkdir ~/localgo && cd ~/localgo
132+
wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
133+
tar xfz go1.16.6.linux-amd64.tar.gz
134+
echo "export PATH=$(pwd)/go/bin:\$PATH" >> ~/.bashrc
135+
- run: go version
129136
- run: sudo apt install socat net-tools
130137
- checkout
131138

@@ -150,8 +157,7 @@ jobs:
150157
command: echo "export TEST_DOCKER_HOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')" >> $BASH_ENV
151158
- run:
152159
echo TEST_DOCKER_HOST=$TEST_DOCKER_HOST &&
153-
make -O -j 3 coverage/sharness_tests.coverprofile test/sharness/test-results/sharness.xml TEST_GENERATE_JUNIT=1 CONTINUE_ON_S_FAILURE=1 TEST_DOCKER_HOST=$TEST_DOCKER_HOST
154-
160+
make -O -j 10 coverage/sharness_tests.coverprofile test/sharness/test-results/sharness.xml TEST_GENERATE_JUNIT=1 CONTINUE_ON_S_FAILURE=1 TEST_DOCKER_HOST=$TEST_DOCKER_HOST
155161
- run:
156162
when: always
157163
command: bash <(curl -s https://codecov.io/bash) -cF sharness -X search -f coverage/sharness_tests.coverprofile

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Note: when updating the go minor version here, also update the go-channel in snap/snapcraft.yml
2-
FROM golang:1.15.2-buster
2+
FROM golang:1.16.7-buster
33
LABEL maintainer="Steven Allen <[email protected]>"
44

55
# Install deps

docs/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ To build out-of-tree plugins, use the plugin's Makefile if provided. Otherwise,
140140
you can manually build the plugin by running:
141141

142142
```bash
143-
myplugin$ go build -buildmode=plugin -i -o myplugin.so myplugin.go
143+
myplugin$ go build -buildmode=plugin -o myplugin.so myplugin.go
144144
```
145145

146146
Finally, as with in-tree plugins:

mk/util.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ SUPPORTED_PLATFORMS += openbsd-amd64
3030
SUPPORTED_PLATFORMS += netbsd-386
3131
SUPPORTED_PLATFORMS += netbsd-amd64
3232

33-
space:=
34-
space+=
33+
space:=$() $()
3534
comma:=,
3635
join-with=$(subst $(space),$1,$(strip $2))
3736

plugin/plugins/Rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $($(d)_plugins_main):
1212

1313
$($(d)_plugins_so): %.so : %/main/main.go
1414
$($(d)_plugins_so): $$(DEPS_GO) ALWAYS
15-
$(GOCC) build -buildmode=plugin -i -pkgdir "$(GOPATH)/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))/main"
15+
$(GOCC) build -buildmode=plugin -pkgdir "$(GOPATH)/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))/main"
1616
chmod +x "$@"
1717

1818
CLEAN += $($(d)_plugins_so)

0 commit comments

Comments
 (0)