From 3480e16e554fce8f445d3a79a219d53bb8f325d8 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 21 Nov 2023 13:54:27 +0000 Subject: [PATCH] :bug: Fixed Implementation for 1.21 --- pkg/action/env.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/action/env.go b/pkg/action/env.go index d22fb9d..f5e1e6d 100644 --- a/pkg/action/env.go +++ b/pkg/action/env.go @@ -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], "\""), "'") } }