aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--beku_test.go6
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--package_test.go4
4 files changed, 8 insertions, 8 deletions
diff --git a/beku_test.go b/beku_test.go
index ea3a127..8c7472b 100644
--- a/beku_test.go
+++ b/beku_test.go
@@ -54,9 +54,9 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}
- testGitPkgCur, _ = NewPackage(testEnv.dirSrc, testGitRepo)
- testGitPkgNew, _ = NewPackage(testEnv.dirSrc, testGitRepo)
- testGitPkgInstall, _ = NewPackage(testEnv.dirSrc, testGitRepo)
+ testGitPkgCur, _ = NewPackage(testEnv.dirSrc, testGitRepo, testGitRepo)
+ testGitPkgNew, _ = NewPackage(testEnv.dirSrc, testGitRepo, testGitRepo)
+ testGitPkgInstall, _ = NewPackage(testEnv.dirSrc, testGitRepo, testGitRepo)
wd, err := os.Getwd()
if err != nil {
diff --git a/go.mod b/go.mod
index 5ce526c..7ced2e7 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/shuLhan/beku
require (
- github.com/shuLhan/share v0.0.0-20181031165753-0073103e650b
+ github.com/shuLhan/share v0.1.0
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
)
diff --git a/go.sum b/go.sum
index 704ccd1..89b422b 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,5 @@
-github.com/shuLhan/share v0.0.0-20181031165753-0073103e650b h1:P7g7KLWseAUc6zhZ05G5OBNQvfS2TNWurlzeXIs1Ztc=
-github.com/shuLhan/share v0.0.0-20181031165753-0073103e650b/go.mod h1:L4OhM+hxrUdsb+Im+o06N/wz4hzfu29/R9lqueL4HJI=
+github.com/shuLhan/share v0.1.0 h1:sX3zCgH6Xwj/7SW/WxLAH35gVQPRfN2OkmBSt16bgF0=
+github.com/shuLhan/share v0.1.0/go.mod h1:L4OhM+hxrUdsb+Im+o06N/wz4hzfu29/R9lqueL4HJI=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e h1:FDhOuMEY4JVRztM/gsbk+IKUQ8kj74bxZrgw87eMMVc=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
diff --git a/package_test.go b/package_test.go
index 7ae665f..2b1fdb7 100644
--- a/package_test.go
+++ b/package_test.go
@@ -34,7 +34,7 @@ func testPackageRemove(t *testing.T) {
t.Log(c.desc)
if len(c.pkgName) > 0 {
- c.pkg, _ = NewPackage(testEnv.dirSrc, c.pkgName)
+ c.pkg, _ = NewPackage(testEnv.dirSrc, c.pkgName, c.pkgName)
}
err := c.pkg.Remove()
@@ -746,7 +746,7 @@ func testPackageGoClean(t *testing.T) {
t.Log(c.desc)
if len(c.pkgName) > 0 {
- c.pkg, _ = NewPackage(testEnv.dirSrc, c.pkgName)
+ c.pkg, _ = NewPackage(testEnv.dirSrc, c.pkgName, c.pkgName)
}
err = c.pkg.GoClean()