From 9ce38fb41e0916f3cebcacc17687770fbb31a4bf Mon Sep 17 00:00:00 2001 From: artin Date: Sat, 22 Feb 2025 18:25:48 +0800 Subject: [PATCH] chore: add comments --- internal/manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/manager.go b/internal/manager.go index 0dd75409..8225be54 100644 --- a/internal/manager.go +++ b/internal/manager.go @@ -131,6 +131,8 @@ func (m *Manager) SessionEnvKeys(opt SessionEnvOptions) (SdkEnvs, error) { if err != nil { return nil, err } + // Here we need to add the global environment to the beginning of the slice, + // so that the global environment has the lower priority than the current environment. tvs = append(toolset.MultiToolVersions{homeToolVersion}, tvs...) }