mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-22 00:40:14 -06:00
Merge pull request #725 from pre-commit/fix_golang
Fix go 1.10: no pkg dir
This commit is contained in:
@@ -74,7 +74,9 @@ def install_environment(prefix, version, additional_dependencies):
|
||||
cmd_output('go', 'get', dependency, cwd=repo_src_dir, env=env)
|
||||
# Same some disk space, we don't need these after installation
|
||||
rmtree(prefix.path(directory, 'src'))
|
||||
rmtree(prefix.path(directory, 'pkg'))
|
||||
pkgdir = prefix.path(directory, 'pkg')
|
||||
if os.path.exists(pkgdir): # pragma: no cover (go<1.10)
|
||||
rmtree(pkgdir)
|
||||
|
||||
|
||||
def run_hook(prefix, hook, file_args):
|
||||
|
||||
Reference in New Issue
Block a user