From 39cebffa871a2e7e69cf6020f60a163fa786c9ae Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 7 Jul 2022 21:07:42 +1000 Subject: [PATCH] Fix: use correct json value for `buildtype` --- v2/pkg/runtime/runtime.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v2/pkg/runtime/runtime.go b/v2/pkg/runtime/runtime.go index 20e44dc72..6dc61f368 100644 --- a/v2/pkg/runtime/runtime.go +++ b/v2/pkg/runtime/runtime.go @@ -67,12 +67,14 @@ func Quit(ctx context.Context) { appFrontend.Quit() } +// EnvironmentInfo contains information about the environment type EnvironmentInfo struct { - BuildType string `json:"buildtype"` + BuildType string `json:"buildType"` Platform string `json:"platform"` Arch string `json:"arch"` } +// Environment returns information about the environment func Environment(ctx context.Context) EnvironmentInfo { var result EnvironmentInfo buildType := ctx.Value("buildtype")