Update gotak import path to fix Travis build
authorMikael Berthe <mikael@lilotux.net>
Sat, 07 Apr 2018 22:49:51 +0200
changeset 15 eac7d78ff641
parent 14 f67da1c20c86
child 16 1cde13306e8f
Update gotak import path to fix Travis build Update import path in the gotak subdir so that Travis tests can be played against the Github repository. Also, add missing dependencies to the Travis YAML file.
.travis.yml
README.md
gotak/gotak.go
gotak/pdf.go
--- a/.travis.yml	Sat Apr 07 22:32:47 2018 +0200
+++ b/.travis.yml	Sat Apr 07 22:49:51 2018 +0200
@@ -14,3 +14,5 @@
   - master
 install:
 - go get github.com/spf13/pflag
+- go get github.com/pkg/errors
+- go get github.com/jung-kurt/gofpdf
--- a/README.md	Sat Apr 07 22:32:47 2018 +0200
+++ b/README.md	Sat Apr 07 22:49:51 2018 +0200
@@ -12,7 +12,7 @@
 - Mercurial repository: https://hg.lilotux.net/golang/mikael/takuzu/
 - Github mirror: https://github.com/McKael/takuzu/
 
-Please read the [godoc documentation]](https://godoc.org/github.com/McKael/takuzu) for details.
+Please read the [godoc documentation](https://godoc.org/github.com/McKael/takuzu) for details.
 
 # CLI demo
 
@@ -23,10 +23,10 @@
 To build the gotak CLI utility, you can use
 
 ```
-go get https://hg.lilotux.net/golang/mikael/takuzu/gotak
+go get github.com/takuzu/gotak
 ```
 
-(If you use the Github mirror, you'll have to update the import path manually.)
+(If you use the Mercurial repository, you have to update the import path manually.)
 
 # Online puzzle demo
 
--- a/gotak/gotak.go	Sat Apr 07 22:32:47 2018 +0200
+++ b/gotak/gotak.go	Sat Apr 07 22:49:51 2018 +0200
@@ -14,7 +14,7 @@
 
 	"github.com/spf13/pflag"
 
-	"hg.lilotux.net/golang/mikael/takuzu"
+	"github.com/McKael/takuzu"
 )
 
 var verbosity int
--- a/gotak/pdf.go	Sat Apr 07 22:32:47 2018 +0200
+++ b/gotak/pdf.go	Sat Apr 07 22:49:51 2018 +0200
@@ -10,7 +10,7 @@
 	"github.com/jung-kurt/gofpdf"
 	"github.com/pkg/errors"
 
-	"hg.lilotux.net/golang/mikael/takuzu"
+	"github.com/McKael/takuzu"
 )
 
 func tak2pdf(takuzu *takuzu.Takuzu, pdfFileName string) error {