Skip to content

Commit d6804de

Browse files
authored
ci: bump go version (#2533)
1 parent 9c5f09c commit d6804de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
os-tests:
88
strategy:
99
matrix:
10-
go-version: [1.16.x, 1.17.x]
10+
go-version: [1.17.x, 1.18.x]
1111
platform: [ubuntu-latest, macos-latest, windows-latest]
1212
runs-on: ${{ matrix.platform }}
1313
steps:
@@ -31,7 +31,7 @@ jobs:
3131
build-tests:
3232
strategy:
3333
matrix:
34-
go-version: [1.16.x, 1.17.x]
34+
go-version: [1.17.x, 1.18.x]
3535
platform: [ubuntu-latest]
3636
runs-on: ${{ matrix.platform }}
3737
steps:

cmd/scw/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func cleanup(buildInfo *core.BuildInfo) {
4747
func buildVersion() string {
4848
if Version == "" {
4949
buildInfos, ok := debug.ReadBuildInfo()
50-
if ok && buildInfos.Main.Version != "(devel)" {
50+
if ok && buildInfos.Main.Version != "(devel)" && buildInfos.Main.Version != "" {
5151
return buildInfos.Main.Version
5252
}
5353
return "v2+dev"

0 commit comments

Comments
 (0)