mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix go 1.10: no pkg dir
This commit is contained in:
parent
ae2eac5c08
commit
65f001b007
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue