diff options
| author | Shulhan <ms@kilabit.info> | 2018-12-14 19:43:27 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-12-14 19:43:27 +0700 |
| commit | f8fc02296e4035b0190decbd6cfd3be1e7ad2248 (patch) | |
| tree | d72a3bae4e2108794989a624df87a41fc7735461 | |
| parent | 570d56cc79b49f9e5d077d60b4d6639dd7eaa1c9 (diff) | |
| download | beku-f8fc02296e4035b0190decbd6cfd3be1e7ad2248.tar.xz | |
env: remove unused function to reinstall all packages
| -rw-r--r-- | env.go | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -1350,19 +1350,3 @@ func (env *Env) build(pkg *Package) (err error) { // Install missing dependencies. return env.installMissing(pkg) } - -func (env *Env) reinstallAll() (err error) { - for _, pkg := range env.pkgs { - fmt.Printf("\n[ENV] reinstallAll >>> %s\n", pkg.ImportPath) - - err = env.build(pkg) - if err != nil { - return - } - - if len(pkg.DepsMissing) == 0 { - _ = pkg.GoInstall(env.path) - } - } - return -} |
