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

Unable to install with go get #22

Closed
jcbwlkr opened this issue Apr 22, 2015 · 4 comments · Fixed by #23
Closed

Unable to install with go get #22

jcbwlkr opened this issue Apr 22, 2015 · 4 comments · Fixed by #23

Comments

@jcbwlkr
Copy link

jcbwlkr commented Apr 22, 2015

This tool looks great and I would love to use it. When I try install it I get compilation errors. I'm not sure if I'm doing something wrong or what. In this example I made a new empty $GOPATH to be sure there was not some weird dependency issue.

~ ᐳ rm -rf tmp
~ ᐳ mkdir tmp
~ ᐳ export GOPATH=$PWD/tmp
~ ᐳ cd $GOPATH
~/tmp ᐳ ls
~/tmp ᐳ go get github.com/relops/cqlc
# github.com/relops/cqlc/generator
src/github.com/relops/cqlc/generator/generator.go:165: t.Type undefined (type *gocql.TypeInfo has no field or method Type)
src/github.com/relops/cqlc/generator/generator.go:175: invalid case gocql.TypeList in switch on t.Type (mismatched types int and func() gocql.Type)
src/github.com/relops/cqlc/generator/generator.go:175: invalid case gocql.TypeSet in switch on t.Type (mismatched types int and func() gocql.Type)
src/github.com/relops/cqlc/generator/generator.go:176: t.Elem undefined (type gocql.TypeInfo has no field or method Elem)
src/github.com/relops/cqlc/generator/generator.go:177: invalid case gocql.TypeMap in switch on t.Type (mismatched types int and func() gocql.Type)
src/github.com/relops/cqlc/generator/generator.go:178: t.Key undefined (type gocql.TypeInfo has no field or method Key)
src/github.com/relops/cqlc/generator/generator.go:179: t.Elem undefined (type gocql.TypeInfo has no field or method Elem)
src/github.com/relops/cqlc/generator/template.go:46: invalid operation: c.Type.Type == gocql.TypeCounter (mismatched types func() gocql.Type and int)
src/github.com/relops/cqlc/generator/template.go:71: invalid operation: c.Type.Type == gocql.TypeList (mismatched types func() gocql.Type and int)
src/github.com/relops/cqlc/generator/template.go:71: invalid operation: c.Type.Type == gocql.TypeSet (mismatched types func() gocql.Type and int)
src/github.com/relops/cqlc/generator/template.go:71: too many errors

Do you have any advice?

@0x6e6562
Copy link
Member

Unfortunately what has happened is that the upstream API (i.e. gocql) has landed a breaking change in the last fortnight which hasn't yet been pulled straight in cqlc. To compound this, I made the decision a while back not to pin the dependency on a specific gocql version, because this would make an assumption that an end user might not like. So the only two options are:

  1. For me to hurry up and pull the changes straight
  2. To update gocql to an earlier version

I think the best solution is (1).

I'll try to get this done ASAP.

@jcbwlkr
Copy link
Author

jcbwlkr commented Apr 22, 2015

@0x6e6562 ah I see. Thanks for looking in to this and let me know if I can help somehow.

@0x6e6562
Copy link
Member

This issue was auto-closed by #23, but I'm re-opening to get your confirmation that this indeed fixes the issue you are seeing.

@0x6e6562 0x6e6562 reopened this Apr 22, 2015
@jcbwlkr
Copy link
Author

jcbwlkr commented Apr 23, 2015

Looks good. Thanks! (^_^)

@jcbwlkr jcbwlkr closed this as completed Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants