summaryrefslogtreecommitdiffstats
path: root/pre_commit/languages/golang.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-21 19:59:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-21 19:59:19 +0000
commitf280995a847850327b1a156bfba2068966b1acec (patch)
tree88a9d713cfdba9d743dfead659531357af244b8b /pre_commit/languages/golang.py
parentReleasing debian version 2.16.0-1. (diff)
downloadpre-commit-f280995a847850327b1a156bfba2068966b1acec.tar.xz
pre-commit-f280995a847850327b1a156bfba2068966b1acec.zip
Merging upstream version 2.17.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/languages/golang.py')
-rw-r--r--pre_commit/languages/golang.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pre_commit/languages/golang.py b/pre_commit/languages/golang.py
index d6165d9..10ebc62 100644
--- a/pre_commit/languages/golang.py
+++ b/pre_commit/languages/golang.py
@@ -79,9 +79,11 @@ def install_environment(
gopath = directory
env = dict(os.environ, GOPATH=gopath)
env.pop('GOBIN', None)
- cmd_output_b('go', 'get', './...', cwd=repo_src_dir, env=env)
+ cmd_output_b('go', 'install', './...', cwd=repo_src_dir, env=env)
for dependency in additional_dependencies:
- cmd_output_b('go', 'get', dependency, cwd=repo_src_dir, env=env)
+ cmd_output_b(
+ 'go', 'install', dependency, cwd=repo_src_dir, env=env,
+ )
# Same some disk space, we don't need these after installation
rmtree(prefix.path(directory, 'src'))
pkgdir = prefix.path(directory, 'pkg')