stripe-archive / safesql

Static analysis tool for Golang that protects against SQL injections
MIT License
564 stars 47 forks source link

"go get" fails to pull safesql because of compile error #3

Open ryanatallah opened 8 years ago

ryanatallah commented 8 years ago

When I run go get, I receive the following error:

$ go get github.com/stripe/safesql
# github.com/stripe/safesql
github.com/stripe/safesql/safesql.go:46: s.Build undefined (type *ssa.Program has no field or method Build)
ebroder commented 8 years ago

What happens if you try running go get -u github.com/stripe/safesql (to fetch dependency updates)? We recently pushed some patches to account for interface changes in golang.org/x/tools/go/ssa/ssautil

cc @ryanlower

carbocation commented 8 years ago
$ go get github.com/stripe/safesql
# github.com/stripe/safesql
../../../../github.com/stripe/safesql/safesql.go:45: undefined: ssautil.CreateProgram
../../../../github.com/stripe/safesql/safesql.go:48: p.Package undefined (type *loader.Program has no field or method Package)
$ go get -u github.com/stripe/safesql
# github.com/stripe/safesql
../../../../github.com/stripe/safesql/safesql.go:45: undefined: ssautil.CreateProgram
../../../../github.com/stripe/safesql/safesql.go:48: p.Package undefined (type *loader.Program has no field or method Package)
holys commented 8 years ago

go 1.3.3

$ go get -u github.com/stripe/safesql
# golang.org/x/tools/container/intsets
../../../golang.org/x/tools/container/intsets/popcnt_amd64.s:8 6a: No such file or directory: textflag.h