Open jlpellicer opened 6 years ago
I was having this problem, and like other assorted comments mention, it has to do with loading lib/pg
twice. The way I fixed it was moving the migrate
in to my vendor
directory and out of $GOPATH/src/github.com/...
. It worked after that. The moral of that story is that if you use vendor
, everything should be there, don't use it, but some packages get confused when loaded in both places.
I've seen this question asked before, but I could not find a solution.
My code before the migration works just fine (DB Ready to Rock), but when i add the
migrate
packages and code it doesn't.The error:
This is my db file:
I also read that there might be a "confilct" while using vendoring (I'm using Godep), and I do in fact have two
pq
libraries, but I don't know if this is a problem and therefore no idea how to solve it:/Users/transistor/Documents/Go/src/asc-api-go/vendor/github.com/lib/pq
/Users/transistor/Documents/Go/src/github.com/lib/pq
Can you help? Thank you.