Skip to content

Commit 71ddb16

Browse files
committed
fix(release): fix release definition
1 parent d423915 commit 71ddb16

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.goreleaser.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ builds:
2222
- -X github.com/codesphere-cloud/oms/internal/version.version={{.Version}}
2323
- -X github.com/codesphere-cloud/oms/internal/version.commit={{.Commit}}
2424
- -X github.com/codesphere-cloud/oms/internal/version.date={{.Date}}
25+
- -X github.com/codesphere-cloud/oms/internal/version.os={{.Os}}
26+
- -X github.com/codesphere-cloud/oms/internal/version.arch={{.Arch}}
2527

2628
- id: service
2729
env:
@@ -40,6 +42,8 @@ builds:
4042
- -X github.com/codesphere-cloud/oms/internal/version.version={{.Version}}
4143
- -X github.com/codesphere-cloud/oms/internal/version.commit={{.Commit}}
4244
- -X github.com/codesphere-cloud/oms/internal/version.date={{.Date}}
45+
- -X github.com/codesphere-cloud/oms/internal/version.os={{.Os}}
46+
- -X github.com/codesphere-cloud/oms/internal/version.arch={{.Arch}}
4347

4448
changelog:
4549
sort: asc
@@ -51,9 +55,12 @@ changelog:
5155
- "^chore"
5256

5357
archives:
54-
- formats:
55-
- binary
56-
- tar.gz
58+
- id: bin
59+
formats:
60+
- binary
61+
- id: tar
62+
formats:
63+
- tar.gz
5764
name_template: "{{.Os}}_{{.Arch}}"
5865

5966
release:

cli/cmd/version.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ type VersionCmd struct {
1515
}
1616

1717
func (c *VersionCmd) RunE(_ *cobra.Command, args []string) error {
18-
fmt.Printf("Codesphere CLI version: %s\n", version.Version())
18+
fmt.Printf("OMS CLI version: %s\n", version.Version())
1919
fmt.Printf("Commit: %s\n", version.Commit())
2020
fmt.Printf("Build Date: %s\n", version.BuildDate())
21+
fmt.Printf("Arch: %s\n", version.Arch())
22+
fmt.Printf("OS: %s\n", version.Os())
2123

2224
return nil
2325
}

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ module github.com/codesphere-cloud/oms
33
go 1.24.2
44

55
require (
6+
github.com/blang/semver v3.5.1+incompatible
67
github.com/codesphere-cloud/cs-go v0.10.1
8+
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf
79
github.com/jedib0t/go-pretty/v6 v6.6.7
810
github.com/onsi/ginkgo/v2 v2.23.4
911
github.com/onsi/gomega v1.37.0

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
2+
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
13
github.com/codesphere-cloud/cs-go v0.10.1 h1:QhiBKYkBlAeephPKfl0AY18MLGNdcY2uAjvncu7ezq8=
24
github.com/codesphere-cloud/cs-go v0.10.1/go.mod h1:lJENk49WB9ZIGeZdZdzERYlCxlpL1FNcN8oj/NjgUfw=
35
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
@@ -11,6 +13,8 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
1113
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
1214
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=
1315
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
16+
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf h1:WfD7VjIE6z8dIvMsI4/s+1qr5EL+zoIGev1BQj1eoJ8=
17+
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg=
1418
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
1519
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
1620
github.com/jedib0t/go-pretty/v6 v6.6.7 h1:m+LbHpm0aIAPLzLbMfn8dc3Ht8MW7lsSO4MPItz/Uuo=

0 commit comments

Comments
 (0)