Skip to content

Commit

Permalink
Update go version to 1.17 (#26)
Browse files Browse the repository at this point in the history
run go mod tidy
update dependencies
add arm64 to release script
  • Loading branch information
CorbanR authored Jun 1, 2022
1 parent e94f1e6 commit 800a945
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 160 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
steps:
# general setup
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch everything for gorelease
- name: Checkout Bridge Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: get-bridge/actions
token: ${{ secrets.GIT_HUB_TOKEN }}
path: .github/actions
- name: ECR Auth
uses: ./.github/actions/ecr-auth
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.17

# build image
- name: Docker Build
Expand All @@ -39,7 +39,7 @@ jobs:
# build and test golang
- name: GoReleaser Build
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: build --snapshot
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch everything for gorelease
# Go get'em!
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.17
# Release the thing!
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# unreleased - 2022-06-01

- Chore(go): Bump Go version from 1.16 to 1.17
- Chore(Docker): bump alpine base image to 1.17
- Chore(go) Run go mod tidy
- Chore(go) Update dependencies
- Chore(go) Add `arm64` to release script

# v0.9 - 2021-06-25

- Fix install error with gorelease config
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16-alpine
FROM golang:1.17-alpine

RUN apk --no-cache add \
bash \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BUILD_OS_LIST = darwin linux
BUILD_ARCH_LIST = 386 amd64
BUILD_ARCH_LIST = 386 amd64 arm64

MODULE = github.com/get-bridge/muss
VERSION_VAR = $(MODULE)/cmd.Version
Expand Down
23 changes: 15 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
module github.com/get-bridge/muss

go 1.13
go 1.17

require (
github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/go-multierror v1.1.1
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.1.2
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.3
github.com/mitchellh/mapstructure v1.5.0
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.2.2
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a
gopkg.in/yaml.v2 v2.2.2
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
)
167 changes: 26 additions & 141 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit 800a945

Please # to comment.