From d3b449eb7f6a59a1bb3e54405042365a2cdaf1b9 Mon Sep 17 00:00:00 2001 From: filipecosta90 Date: Mon, 29 Apr 2024 01:45:15 +0100 Subject: [PATCH 1/3] Updated goreleaser action to v5. updated go version to 1.21 --- .github/workflows/publish.yaml | 2 +- go.mod | 37 ++++++++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2b746ca..f670bed 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -24,7 +24,7 @@ jobs: go-version: 1.17 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: ${{ env.GITHUB_REF_NAME }} diff --git a/go.mod b/go.mod index 6286881..31ee1d1 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,44 @@ module github.com/codeperfio/codeperf -go 1.16 +go 1.21 require ( github.com/go-git/go-git/v5 v5.4.2 github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 - github.com/sergi/go-diff v1.2.0 // indirect github.com/spf13/cobra v1.2.1 github.com/spf13/viper v1.9.0 ) + +require ( + github.com/Microsoft/go-winio v0.4.16 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect + github.com/acomagu/bufpipe v1.0.3 // indirect + github.com/emirpasic/gods v1.12.0 // indirect + github.com/fsnotify/fsnotify v1.5.1 // indirect + github.com/go-git/gcfg v1.5.0 // indirect + github.com/go-git/go-billy/v5 v5.3.1 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 // indirect + github.com/imdario/mergo v0.3.12 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect + github.com/magiconair/properties v1.8.5 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/mapstructure v1.4.2 // indirect + github.com/pelletier/go-toml v1.9.4 // indirect + github.com/sergi/go-diff v1.2.0 // indirect + github.com/spf13/afero v1.6.0 // indirect + github.com/spf13/cast v1.4.1 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + github.com/xanzy/ssh-agent v0.3.0 // indirect + golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect + golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420 // indirect + golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect + golang.org/x/text v0.3.6 // indirect + gopkg.in/ini.v1 v1.63.2 // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect +) From 87372ffb750da973143429ab2db0efac1d6fdda6 Mon Sep 17 00:00:00 2001 From: filipecosta90 Date: Mon, 29 Apr 2024 01:46:35 +0100 Subject: [PATCH 2/3] Updated ci workflows to use go 1.21 --- .github/workflows/build.yaml | 2 +- .github/workflows/publish.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fdf5f6a..684d92d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ jobs: build: strategy: matrix: - go-version: [1.17.x] + go-version: [1.21.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f670bed..193974b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -21,7 +21,7 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.21 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 From fcc5f325fce9c5b3d3e9a38cb42be303594a4107 Mon Sep 17 00:00:00 2001 From: filipecosta90 Date: Mon, 29 Apr 2024 01:50:25 +0100 Subject: [PATCH 3/3] updated hash script to checksum codeperf-* instead of pprof-exporter* --- scripts/hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hash.sh b/scripts/hash.sh index d837612..63df6ac 100755 --- a/scripts/hash.sh +++ b/scripts/hash.sh @@ -1,3 +1,3 @@ #!/bin/sh -for f in bin/pprof-*; do shasum -a 256 $f > $f.sha256; done \ No newline at end of file +for f in bin/codeperf-*; do shasum -a 256 $f > $f.sha256; done \ No newline at end of file