aboutsummaryrefslogtreecommitdiff
path: root/env.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-09-14 22:06:11 +0700
committerShulhan <ms@kilabit.info>2018-09-14 22:06:11 +0700
commitf7b8d4e829f1c47ab9156637c535e83af9c5ffee (patch)
treea58984520e0a45c5c44b564acd66516a0f804cfc /env.go
parentf17dc76fabfde51781f331606a05ea5e09aae717 (diff)
downloadbeku-f7b8d4e829f1c47ab9156637c535e83af9c5ffee.tar.xz
package: simplify Go install method
Change the parameter from instance of env to string. The goal is to decouple instance of environment from package.
Diffstat (limited to 'env.go')
-rw-r--r--env.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/env.go b/env.go
index 6e8a14d..adcaa68 100644
--- a/env.go
+++ b/env.go
@@ -1349,7 +1349,7 @@ func (env *Env) postSync(pkg *Package) (err error) {
// (3)
if len(pkg.DepsMissing) == 0 {
- _ = pkg.GoInstall(env)
+ _ = pkg.GoInstall(env.path)
}
fmt.Println("[ENV] postSync >>> Package installed:\n", pkg)
@@ -1384,7 +1384,7 @@ func (env *Env) reinstallAll() (err error) {
}
if len(pkg.DepsMissing) == 0 {
- _ = pkg.GoInstall(env)
+ _ = pkg.GoInstall(env.path)
}
}
return