diff options
| author | Shulhan <ms@kilabit.info> | 2018-09-18 17:48:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-09-18 17:48:11 +0700 |
| commit | d528f6e1d0277a32e3a2453fe7fc552a857c17ae (patch) | |
| tree | 31b161dd285ffeaeb0d234fea061b53f0ba41d12 | |
| parent | 08bac9a9f4bd6fca5af3a6928a08186e1c27ea42 (diff) | |
| download | beku-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.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 |
