From d528f6e1d0277a32e3a2453fe7fc552a857c17ae Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 18 Sep 2018 17:48:11 +0700 Subject: env: do not scan package if its not exist on local Previously, when freezing the package and package did not exist on local file system, we do scan the package for version and remote URL, which cause an error because the package directory did not exist. This commit fix the issue by not scanning the package if its not exist on local system. --- env.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/env.go b/env.go index 11a4627..707dad6 100644 --- a/env.go +++ b/env.go @@ -187,11 +187,6 @@ func (env *Env) Freeze() (err error) { return } if localPkg == nil { - err = pkg.Scan() - if err != nil { - return - } - err = pkg.Install() if err != nil { return -- cgit v1.3