From 4ca17f54c98e82158f51d8d2fcdcd9237f1071a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=85=BE?= Date: Fri, 27 Dec 2024 16:18:31 +0800 Subject: [PATCH] Fix: Set BYTEMAN_HOME environment variable when not set - Set the BYTEMAN_HOME environment variable to the correct path if it's not already set. - Used fmt.Sprintf to dynamically construct the path for BYTEMAN_HOME. --- pkg/utils/env.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/utils/env.go b/pkg/utils/env.go index 818af3bd..0b84fdaa 100644 --- a/pkg/utils/env.go +++ b/pkg/utils/env.go @@ -37,6 +37,7 @@ func SetRuntimeEnv() error { if err != nil { return err } + bytemanHome = fmt.Sprintf("%s/tools/byteman", wd) } path := os.Getenv("PATH")