diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-20 22:21:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-20 22:21:46 +0700 |
| commit | 7634a0da603051e4ec84e8c04ba500a59ae01e76 (patch) | |
| tree | b5b50cd639f75f296f02713da7bdeb37158113d1 | |
| parent | ae7867ff2091a5360bc7eddaff0d1d8a97bdb11e (diff) | |
| download | beku-7634a0da603051e4ec84e8c04ba500a59ae01e76.tar.xz | |
package: rename method "RunGoInstall" to "GoInstall"
| -rw-r--r-- | env.go | 2 | ||||
| -rw-r--r-- | package.go | 5 | ||||
| -rw-r--r-- | package_test.go | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -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 } @@ -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) |
