use godror instead of oci8#170
Conversation
|
@rubenv sorry for close previous PR by my mistake(#169).
|
|
That's the command-line tool, right? It's the library that should build without cgo. For the CLI, we can't avoid it. Also, I'd love to hear from users who currently use Maybe it's better to add this as an additional option rather than replacing |
we have two ways to use sql-migrate, or |
|
sorry,
Maybe we need to add a new dialect
Agree, but run |
Yup, same thing I was thinking, that won't break old code
Which directory / go version are you running this with? Works just fine here. Also added a check to CI, where it works as well: https://travis-ci.org/github/rubenv/sql-migrate/builds/669573072 |
please try. |
|
Works on my machine, in a clean Docker container and on CI. Not sure why it behaves differently for you, but it shouldn't compile sqlite3 for the main library. Please paste the output of |
/Users/luoji/gopath/pkg/mod/github.com/mattn/go-sqlite3@v1.12.0 |
|
That doesn't make any sense? What folder are you running this in? |
|
Any directory, because I use go mod. and I check the codes of go-sqlite3@v1.12.0. Some C code is in this package. |
|
No I'm also using go modules. My feeling is that you're running this in the folder containing the executable. Not the project root. |
|
yes, I am run the command on directory |
|
That's normal, that's the CLI, which depends on SQLite. Run it in |
|
I will implement dialect |
Signed-off-by: luoji <gunsluo@gmail.com>
|
@rubenv please view. one more thing, do we use |
Signed-off-by: luoji <gunsluo@gmail.com>
We can't change that, people might already have that value in their build scripts |
Signed-off-by: luoji <gunsluo@gmail.com>
|
@rubenv please review. |
|
@rubenv Hi, Can you merge this PR if there is no problem. because of we now cant use godror and |
|
I think it looks good now, good to go! |
|
Thanks a lot for your hard work! |
use godror instead of oci8