Working off from LDA project on RadiusNetworks/lda#7
What I expect:
- The
go get
command setsgonum
version ingo.mod
to gonum revision - Running the tests succeed
What I observe:
- The
@revision
ofgo get
is ignored - The
latest
version is fetched setting the revision to the last commit on master go test
fails# github.com/RadiusNetworks/lda [github.com/RadiusNetworks/lda.test] ./lda.go:164:20: too many arguments in call to ld.eigen.Factorize have (*mat.Dense, bool, bool) want (mat.Matrix, mat.EigenKind)
Obtained results by executing go get
.
$ go get gonum.org/v1/gonum@73ea1e732937f96d723d31dc5263d214a275d204
go: finding gonum.org/v1/gonum latest
Git diff after go get
.
diff --git a/go.mod b/go.mod
index 3be6763..454fd54 100644
--- a/go.mod
+++ b/go.mod
@@ -3,6 +3,11 @@ module github.com/RadiusNetworks/lda
go 1.12
require (
- gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4
- gonum.org/v1/plot v0.0.0-20190410204940-3a5f52653745
+ github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af // indirect
+ github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 // indirect
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
+ github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5 // indirect
+ golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 // indirect
+ gonum.org/v1/gonum v0.0.0-20190502212712-4a2eb0188cbc
+ rsc.io/pdf v0.1.1 // indirect
)
diff --git a/go.sum b/go.sum
index 99fd0d0..01db5c5 100644
--- a/go.sum
+++ b/go.sum
@@ -19,6 +19,8 @@ gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4 h1:nYxTaCPaVoJbxx+vMVnsFb6
gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
gonum.org/v1/gonum v0.0.0-20190430210020-9827ae2933ff h1:PSmLTFCI0KBBLcaxSbM8ejKR6f7XuDyQS3R8t72ailE=
gonum.org/v1/gonum v0.0.0-20190430210020-9827ae2933ff/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
+gonum.org/v1/gonum v0.0.0-20190502212712-4a2eb0188cbc h1:+c7TChc7Bi9WFPyWzDxu8mnEhA29YW/0NBDy4V24exU=
+gonum.org/v1/gonum v0.0.0-20190502212712-4a2eb0188cbc/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
gonum.org/v1/plot v0.0.0-20190410204940-3a5f52653745 h1:Xaq5xR1I2KM/MWp1vwZxOosUPa1U8wtNN8zRbVko0ZY=
gonum.org/v1/plot v0.0.0-20190410204940-3a5f52653745/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
Running
go mod why
Updates to the latest package, I did not expect this.
$ go mod why gonum.org/v1/gonum go: finding gonum.org/v1/gonum latest go: downloading gonum.org/v1/gonum v0.0.0-20190506115330-fb5cd163d924 go: extracting gonum.org/v1/gonum v0.0.0-20190506115330-fb5cd163d924 # gonum.org/v1/gonum (main module does not need package gonum.org/v1/gonum)