Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules: add go.mod and go.sum and update to modernc.org/cc #56

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis/check-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -ex
go generate gonum.org/v1/netlib/blas/netlib
go generate gonum.org/v1/netlib/lapack/lapacke
go generate gonum.org/v1/netlib/lapack/netlib

git checkout -- go.{mod,sum}
if [ -n "$(git diff)" ]; then
exit 1
fi
2 changes: 1 addition & 1 deletion .travis/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go get gonum.org/v1/gonum/lapack
go get gonum.org/v1/gonum/floats

# Repositories for code generation.
go get github.com/cznic/cc
go get modernc.org/cc
go get gonum.org/v1/netlib/internal/binding

# travis compiles commands in script and then executes in bash. By adding
Expand Down
2 changes: 1 addition & 1 deletion .travis/osx/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go get gonum.org/v1/gonum/lapack
go get gonum.org/v1/gonum/floats

# Repositories for code generation.
go get github.com/cznic/cc
go get modernc.org/cc
go get gonum.org/v1/netlib/internal/binding

# travis compiles commands in script and then executes in bash. By adding
Expand Down
2 changes: 1 addition & 1 deletion blas/netlib/generate_blas.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"text/template"

"github.com/cznic/cc"
"modernc.org/cc"

"gonum.org/v1/netlib/internal/binding"
)
Expand Down
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module gonum.org/v1/netlib

require (
github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446 // indirect
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495
gonum.org/v1/gonum v0.0.0-20190312223110-e28f136e01a8
modernc.org/cc v1.0.0
modernc.org/golex v1.0.0 // indirect
modernc.org/mathutil v1.0.0 // indirect
modernc.org/strutil v1.0.0 // indirect
modernc.org/xc v1.0.0
)
27 changes: 27 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446 h1:/NRJ5vAYoqz+7sG51ubIDHXeWO8DlTSrToPu6q11ziA=
github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495 h1:I6A9Ag9FpEKOjcKrRNjQkPHawoXIhKyTGfvvjFAiiAk=
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
gonum.org/v1/gonum v0.0.0-20190312223110-e28f136e01a8 h1:ydI/ZIWZ7BIeR4qs4epCV2Pw1owzB9je1qxtb9Od8Bc=
gonum.org/v1/gonum v0.0.0-20190312223110-e28f136e01a8/go.mod h1:jevfED4GnIEnJrWW55YmY9DMhajHcnkqVnEXmEtMyNI=
modernc.org/cc v1.0.0 h1:nPibNuDEx6tvYrUAtvDTTw98rx5juGsa5zuDnKwEEQQ=
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
modernc.org/golex v1.0.0 h1:wWpDlbK8ejRfSyi0frMyhilD3JBvtcx2AdGDnU+JtsE=
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
modernc.org/mathutil v1.0.0 h1:93vKjrJopTPrtTNpZ8XIovER7iCIH1QU7wNbOQXC60I=
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
modernc.org/strutil v1.0.0 h1:XVFtQwFVwc02Wk+0L/Z/zDDXO81r5Lhe6iMKmGX3KhE=
modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
modernc.org/xc v1.0.0 h1:7ccXrupWZIS3twbUGrtKmHS2DXY6xegFua+6O3xgAFU=
modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
4 changes: 2 additions & 2 deletions internal/binding/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"text/template"
"unsafe"

"github.com/cznic/cc"
"github.com/cznic/xc"
"modernc.org/cc"
"modernc.org/xc"
)

func model() *cc.Model {
Expand Down
2 changes: 1 addition & 1 deletion lapack/lapacke/generate_lapacke.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"text/template"

"github.com/cznic/cc"
"modernc.org/cc"

"gonum.org/v1/netlib/internal/binding"
)
Expand Down