1
0
Fork 0

Merging upstream version 3.6.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:48:26 +01:00
parent c1eef60de9
commit 6f84c2a03a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 42 additions and 2 deletions

View file

@ -23,6 +23,7 @@ from pre_commit import lang_base
from pre_commit.envcontext import envcontext
from pre_commit.envcontext import PatchesT
from pre_commit.envcontext import Var
from pre_commit.git import no_git_env
from pre_commit.prefix import Prefix
from pre_commit.util import cmd_output
from pre_commit.util import rmtree
@ -141,7 +142,7 @@ def install_environment(
else:
gopath = env_dir
env = dict(os.environ, GOPATH=gopath)
env = no_git_env(dict(os.environ, GOPATH=gopath))
env.pop('GOBIN', None)
if version != 'system':
env['GOROOT'] = os.path.join(env_dir, '.go')