aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-20 22:21:46 +0700
committerShulhan <ms@kilabit.info>2018-05-20 22:21:46 +0700
commit7634a0da603051e4ec84e8c04ba500a59ae01e76 (patch)
treeb5b50cd639f75f296f02713da7bdeb37158113d1
parentae7867ff2091a5360bc7eddaff0d1d8a97bdb11e (diff)
downloadbeku-7634a0da603051e4ec84e8c04ba500a59ae01e76.tar.xz
package: rename method "RunGoInstall" to "GoInstall"
-rw-r--r--env.go2
-rw-r--r--package.go5
-rw-r--r--package_test.go2
3 files changed, 4 insertions, 5 deletions
diff --git a/env.go b/env.go
index d6ea134..7302f30 100644
--- a/env.go
+++ b/env.go
@@ -637,7 +637,7 @@ func (env *Env) postSync(curPkg, newPkg *Package) (err error) {
// (3)
if len(curPkg.DepsMissing) == 0 {
- err = curPkg.RunGoInstall(true)
+ err = curPkg.GoInstall(true)
if err != nil {
return
}
diff --git a/package.go b/package.go
index 1537b85..3754070 100644
--- a/package.go
+++ b/package.go
@@ -375,10 +375,9 @@ func (pkg *Package) load(sec *ini.Section) {
}
//
-// RunGoInstall package directory. If isVerbose is true, it will go install
-// recursively ("./...").
+// GoInstall a package recursively ("./...").
//
-func (pkg *Package) RunGoInstall(isVerbose bool) (err error) {
+func (pkg *Package) GoInstall(isVerbose bool) (err error) {
fmt.Println(">>> Running go install ...")
//nolint:gas
diff --git a/package_test.go b/package_test.go
index 4505bb5..8ab4f0e 100644
--- a/package_test.go
+++ b/package_test.go
@@ -364,7 +364,7 @@ func TestRunGoInstall(t *testing.T) {
testResetOutput(t, false)
- err := c.pkg.RunGoInstall(c.isVerbose)
+ err := c.pkg.GoInstall(c.isVerbose)
testResetOutput(t, false)
stdout, stderr := testGetOutput(t)