Skip to content

Commit f95f18b

Browse files
committed
convert dirty to string
1 parent 03b001b commit f95f18b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/gateway/setup.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ func MustValidateArguments(flagset *flag.FlagSet, validators ...ValidatorContext
124124
}
125125
}
126126

127-
func getBuildInfo() (commitHash string, commitTime string, dirtyBuild bool) {
127+
func getBuildInfo() (commitHash string, commitTime string, dirtyBuild string) {
128128
commitHash = "unknown"
129129
commitTime = "unknown"
130-
dirtyBuild = true
130+
dirtyBuild = "unknown"
131131

132132
info, ok := debug.ReadBuildInfo()
133133
if !ok {
@@ -140,7 +140,7 @@ func getBuildInfo() (commitHash string, commitTime string, dirtyBuild bool) {
140140
case "vcs.time":
141141
commitTime = kv.Value
142142
case "vcs.modified":
143-
dirtyBuild = kv.Value == "true"
143+
dirtyBuild = kv.Value
144144
}
145145
}
146146

0 commit comments

Comments
 (0)