Skip to content

Commit

Permalink
🐛 Fixed Implementation for 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Templum committed Nov 21, 2023
1 parent 0163c4f commit 3480e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/action/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ func ReadRuntimeInfoFromEnv() *RuntimeInfos {

if strings.Contains(env, "GOARCH") {
keyVal := strings.SplitAfter(env, "=")
info.Arch = strings.Trim(keyVal[1], "\"")
info.Arch = strings.Trim(strings.Trim(keyVal[1], "\""), "'")
}

if strings.Contains(env, "GOVERSION") {
keyVal := strings.SplitAfter(env, "=")
info.Version = strings.Trim(keyVal[1], "\"")
info.Version = strings.Trim(strings.Trim(keyVal[1], "\""), "'")
}

if strings.Contains(env, "GOOS") {
keyVal := strings.SplitAfter(env, "=")
info.Os = strings.Trim(keyVal[1], "\"")
info.Os = strings.Trim(strings.Trim(keyVal[1], "\""), "'")
}

}
Expand Down

0 comments on commit 3480e16

Please sign in to comment.