Skip to content

Commit

Permalink
minor: update to Go 1.19 (#925)
Browse files Browse the repository at this point in the history
* update goreleaser

* remove minor changes from release notes

* update go vesion

* update go version

Co-authored-by: crwxaj <crwxaj>
  • Loading branch information
crwxaj authored Aug 18, 2022
1 parent 0a7c700 commit 5bbf0f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.13.x
go-version: 1.19.x

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down
6 changes: 3 additions & 3 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ ENV HOME=/home/gitpod
WORKDIR $HOME
USER gitpod

ENV GO_VERSION=1.16.7 \
ENV GO_VERSION=1.19.0 \
GOPATH=$HOME/go-packages \
GOROOT=$HOME/go
RUN export PATH=$(echo "$PATH" | sed -e 's|:/workspace/go/bin||' -e 's|:/home/gitpod/go/bin||' -e 's|:/home/gitpod/go-packages/bin||')
ENV PATH=$GOROOT/bin:$GOPATH/bin:$PATH

RUN go get -u -v \
github.com/cosmtrek/air && \
RUN go install -v \
github.com/cosmtrek/air@latest && \
sudo rm -rf $GOPATH/src && \
sudo rm -rf $GOPATH/pkg
# user Go packages
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ builds:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
- CC=oa64-clang
- CXX=oa64-clang++
goos:
- darwin
goarch:
Expand Down Expand Up @@ -206,6 +206,7 @@ changelog:
filters:
exclude:
- "^docs:"
- "^minor:"
- "^test:"

release:
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOLANG_CROSS_VERSION ?= v1.17.5
GORELEASER_CROSS_VERSION ?= v1.19.0

SYSROOT_DIR ?= sysroots
SYSROOT_ARCHIVE ?= sysroots.tar.bz2
Expand All @@ -21,7 +21,7 @@ release-dry-run-snapshot:
-v `pwd`:/go/src \
-v `pwd`/sysroot:/sysroot \
-w /go/src \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GORELEASER_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish --snapshot

.PHONY: release-dry-run
Expand All @@ -34,7 +34,7 @@ release-dry-run:
-v `pwd`:/go/src \
-v `pwd`/sysroot:/sysroot \
-w /go/src \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GORELEASER_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish

.PHONY: release-snapshot
Expand All @@ -52,7 +52,7 @@ release-snapshot:
-v `pwd`:/go/src \
-v `pwd`/sysroot:/sysroot \
-w /go/src \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GORELEASER_CROSS_VERSION} \
release --rm-dist --snapshot

.PHONY: release
Expand All @@ -70,5 +70,5 @@ release:
-v `pwd`:/go/src \
-v `pwd`/sysroot:/sysroot \
-w /go/src \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GORELEASER_CROSS_VERSION} \
release --rm-dist

0 comments on commit 5bbf0f4

Please sign in to comment.