File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 :
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 :
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func cleanup(buildInfo *core.BuildInfo) {
4747func 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"
You can’t perform that action at this time.
0 commit comments