aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-09-18 17:48:11 +0700
committerShulhan <ms@kilabit.info>2018-09-18 17:48:11 +0700
commitd528f6e1d0277a32e3a2453fe7fc552a857c17ae (patch)
tree31b161dd285ffeaeb0d234fea061b53f0ba41d12
parent08bac9a9f4bd6fca5af3a6928a08186e1c27ea42 (diff)
downloadbeku-d528f6e1d0277a32e3a2453fe7fc552a857c17ae.tar.xz
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.
-rw-r--r--env.go5
1 files changed, 0 insertions, 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