Skip to content

Commit

Permalink
Bump golang version to 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
elise-ng authored and williamchong committed Mar 24, 2022
1 parent 90044c4 commit 0ec4bef
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.18
- name: Build binary file
run: |
make build
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
submodules: true
- uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.18
- name: Setup release env
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.18
- name: Install golint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0
# TODO: Remove after fixing lint
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.18
# TODO: Remove after fixing format
- name: Run format check
if: ${{ false }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.18
- name: Run go test
run: make test
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
golang 1.18
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ DOCKER := $(shell which docker)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf
LIKE_HOME := '$(HOME)/.liked'
IMAGE_TAG = likecoin/likecoin-chain:$(VERSION)
RBUILDER_IMAGE_TAG = cf0d1a9f3731e30540bbfa36a36d13e4dcccf5eb
RBUILDER_IMAGE_TAG = likecoin/rbuilder:go1.18
BUILDDIR ?= $(CURDIR)/build
GOPATH ?= '$(HOME)/go'
GOLANG_VERSION ?= 1.17.2
GOLANG_VERSION ?= 1.18
GOLANG_CROSS_VERSION := v$(GOLANG_VERSION)
GOGO_PROTO_URL = https://raw.githubusercontent.com/regen-network/protobuf/cosmos
COSMOS_SDK_URL = https://raw.githubusercontent.com/cosmos/cosmos-sdk/v0.43.0
Expand Down Expand Up @@ -77,7 +77,7 @@ build-reproducible: go.sum
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--env LEDGER_ENABLED=$(LEDGER_ENABLED) \
--name latest-build likecoin/rbuilder:$(RBUILDER_IMAGE_TAG)
--name latest-build $(RBUILDER_IMAGE_TAG)
$(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/

docker-build: go.sum
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LikeCoin chain is a blockchain built on the Cosmos SDK. Project page: https://li

## Requirements

- Go1.16+
- Go 1.18

## For development.

Expand Down
1 change: 1 addition & 0 deletions deploy/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
golang 1.18
2 changes: 1 addition & 1 deletion deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document describe how to use Pulumi to set up devnet that support developme
# Prerequisites

- [Pulumi](https://www.pulumi.com/docs/get-started/install/)
- Go 1.17+
- Go 1.18
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos) (for azure nodes)
- [Gcloud CLI](https://cloud.google.com/sdk/docs/install-sdk) (for gcp nodes)

Expand Down
2 changes: 1 addition & 1 deletion deploy/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module deploy

go 1.14
go 1.18

require (
github.com/pulumi/pulumi-azure-native/sdk v1.55.0
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16-alpine AS base
FROM golang:1.18-alpine AS base

RUN apk update && apk add --no-cache build-base git bash curl linux-headers ca-certificates
WORKDIR /
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/likecoin/likechain

go 1.17
go 1.18

require (
github.com/cosmos/cosmos-sdk v0.42.11
Expand Down

0 comments on commit 0ec4bef

Please sign in to comment.