From 7b95313ec72877185dd8e74b32f22da53b2bb727 Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Thu, 31 Oct 2024 20:43:46 +0530 Subject: [PATCH] build: upgrade buf and goreleaser --- .goreleaser.yml | 22 +++++-------------- Makefile | 2 +- buf.gen.yaml | 4 ++-- .../raystack/assets/v1beta2/application.pb.go | 2 +- models/raystack/assets/v1beta2/asset.pb.go | 2 +- models/raystack/assets/v1beta2/bucket.pb.go | 2 +- models/raystack/assets/v1beta2/common.pb.go | 2 +- .../raystack/assets/v1beta2/dashboard.pb.go | 2 +- .../raystack/assets/v1beta2/experiment.pb.go | 2 +- .../assets/v1beta2/feature_table.pb.go | 2 +- models/raystack/assets/v1beta2/group.pb.go | 2 +- models/raystack/assets/v1beta2/job.pb.go | 2 +- models/raystack/assets/v1beta2/metric.pb.go | 2 +- models/raystack/assets/v1beta2/model.pb.go | 2 +- models/raystack/assets/v1beta2/table.pb.go | 2 +- models/raystack/assets/v1beta2/topic.pb.go | 2 +- models/raystack/assets/v1beta2/user.pb.go | 2 +- 17 files changed, 23 insertions(+), 33 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d26b938a9..bb119fd5b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,16 +11,13 @@ before: - make clean changelog: + use: github sort: asc filters: - exclude: - - "^docs:" - - "^test:" - - "^build:" + exclude: ["^docs:", "^test:", "^build:", "^refactor:", "^style:", "^chore:"] builds: - main: ./main.go - id: "linux" binary: meteor flags: [-a] ldflags: @@ -28,16 +25,12 @@ builds: - -X github.com/raystack/meteor/cmd.BuildCommit={{.FullCommit}} - -X github.com/raystack/meteor/cmd.BuildDate={{.Date}} goos: ["linux", "windows", "darwin"] - goarch: [amd64, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library + goarch: [amd64, arm64] # Skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library env: - CGO_ENABLED=0 - ignore: # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library - - goos: linux - goarch: 386 + ignore: - goos: linux goarch: arm - - goos: windows - goarch: 386 - goos: windows goarch: arm @@ -51,7 +44,7 @@ checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" dockers: - goos: linux @@ -69,10 +62,7 @@ nfpms: description: "Metadata collection tool." homepage: https://github.com/raystack/meteor license: Apache 2.0 - formats: - - deb - - rpm - - apk + formats: [deb, rpm, apk] scoops: - homepage: "https://github.com/raystack/meteor" diff --git a/Makefile b/Makefile index 6afef54db..c3cf5ac34 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ NAME="github.com/raystack/meteor" VERSION=$(shell git describe --always --tags 2>/dev/null) COVERFILE="/tmp/app.coverprofile" -PROTON_COMMIT := "42b77358cbb68335607e99794f729e4a558974a5" +PROTON_COMMIT := "ae895e033f71df187c62d7cf9431a2e259ddd423" .PHONY: all build clean test all: build diff --git a/buf.gen.yaml b/buf.gen.yaml index 160225c80..d406c83be 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,5 +1,5 @@ -version: v1 +version: v2 plugins: - - name: go + - remote: buf.build/protocolbuffers/go:v1.31.0 out: models opt: paths=source_relative diff --git a/models/raystack/assets/v1beta2/application.pb.go b/models/raystack/assets/v1beta2/application.pb.go index 4a96ae697..2993d5882 100644 --- a/models/raystack/assets/v1beta2/application.pb.go +++ b/models/raystack/assets/v1beta2/application.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/application.proto diff --git a/models/raystack/assets/v1beta2/asset.pb.go b/models/raystack/assets/v1beta2/asset.pb.go index 31d8becb6..973ec24ab 100644 --- a/models/raystack/assets/v1beta2/asset.pb.go +++ b/models/raystack/assets/v1beta2/asset.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/asset.proto diff --git a/models/raystack/assets/v1beta2/bucket.pb.go b/models/raystack/assets/v1beta2/bucket.pb.go index 8620025b8..a9dfe0808 100644 --- a/models/raystack/assets/v1beta2/bucket.pb.go +++ b/models/raystack/assets/v1beta2/bucket.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/bucket.proto diff --git a/models/raystack/assets/v1beta2/common.pb.go b/models/raystack/assets/v1beta2/common.pb.go index f674c51bd..2f67a87aa 100644 --- a/models/raystack/assets/v1beta2/common.pb.go +++ b/models/raystack/assets/v1beta2/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/common.proto diff --git a/models/raystack/assets/v1beta2/dashboard.pb.go b/models/raystack/assets/v1beta2/dashboard.pb.go index cad46f8af..27bdb9863 100644 --- a/models/raystack/assets/v1beta2/dashboard.pb.go +++ b/models/raystack/assets/v1beta2/dashboard.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/dashboard.proto diff --git a/models/raystack/assets/v1beta2/experiment.pb.go b/models/raystack/assets/v1beta2/experiment.pb.go index 5910951e4..a38b5fa15 100644 --- a/models/raystack/assets/v1beta2/experiment.pb.go +++ b/models/raystack/assets/v1beta2/experiment.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/experiment.proto diff --git a/models/raystack/assets/v1beta2/feature_table.pb.go b/models/raystack/assets/v1beta2/feature_table.pb.go index 2df0ffac1..a85507001 100644 --- a/models/raystack/assets/v1beta2/feature_table.pb.go +++ b/models/raystack/assets/v1beta2/feature_table.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/feature_table.proto diff --git a/models/raystack/assets/v1beta2/group.pb.go b/models/raystack/assets/v1beta2/group.pb.go index 25df06458..4c02e8d7f 100644 --- a/models/raystack/assets/v1beta2/group.pb.go +++ b/models/raystack/assets/v1beta2/group.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/group.proto diff --git a/models/raystack/assets/v1beta2/job.pb.go b/models/raystack/assets/v1beta2/job.pb.go index e1e9f4dd4..4157c5836 100644 --- a/models/raystack/assets/v1beta2/job.pb.go +++ b/models/raystack/assets/v1beta2/job.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/job.proto diff --git a/models/raystack/assets/v1beta2/metric.pb.go b/models/raystack/assets/v1beta2/metric.pb.go index ae5dea38d..a66e0d418 100644 --- a/models/raystack/assets/v1beta2/metric.pb.go +++ b/models/raystack/assets/v1beta2/metric.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/metric.proto diff --git a/models/raystack/assets/v1beta2/model.pb.go b/models/raystack/assets/v1beta2/model.pb.go index 5c3f915d9..64062d924 100644 --- a/models/raystack/assets/v1beta2/model.pb.go +++ b/models/raystack/assets/v1beta2/model.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/model.proto diff --git a/models/raystack/assets/v1beta2/table.pb.go b/models/raystack/assets/v1beta2/table.pb.go index 534c93442..bca02cf4a 100644 --- a/models/raystack/assets/v1beta2/table.pb.go +++ b/models/raystack/assets/v1beta2/table.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/table.proto diff --git a/models/raystack/assets/v1beta2/topic.pb.go b/models/raystack/assets/v1beta2/topic.pb.go index ee64f237e..0bdc710e6 100644 --- a/models/raystack/assets/v1beta2/topic.pb.go +++ b/models/raystack/assets/v1beta2/topic.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/topic.proto diff --git a/models/raystack/assets/v1beta2/user.pb.go b/models/raystack/assets/v1beta2/user.pb.go index 964b4fc75..73afbe8a2 100644 --- a/models/raystack/assets/v1beta2/user.pb.go +++ b/models/raystack/assets/v1beta2/user.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: raystack/assets/v1beta2/user.proto