Skip to content

Commit

Permalink
Merge pull request #436 from emmanuel099/test_with_3.18
Browse files Browse the repository at this point in the history
Test with Go 1.18 and fix GetSemverInfo()
  • Loading branch information
LandonTClipp committed Mar 30, 2022
2 parents 232f954 + fa0080c commit b11695e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest]
go_vers: [1.16, 1.17]
go_vers: [1.16, 1.17, 1.18]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Expand Up @@ -14,7 +14,7 @@ func GetSemverInfo() string {
return SemVer
}
version, ok := debug.ReadBuildInfo()
if ok && version.Main.Version != "(devel)" {
if ok && version.Main.Version != "(devel)" && version.Main.Version != "" {
return version.Main.Version
}
return _defaultSemVer
Expand Down

0 comments on commit b11695e

Please sign in to comment.