Closed davidsulc closed 5 years ago
I have the fix developed in master and will release in the next 24 hours after I build some more tests. Apologies for taking so long on this.
I have pushed a new release and published version 1.1.0 to hex that I believe resolves this issue, and that of #1.
Thanks for your great work!
I've tested the new version and it works as expected modulo an incorrect task name in the docs: https://github.com/kipcole9/money_sql/pull/3
I ran in to https://github.com/kipcole9/money_sql/issues/1, but before seeing the issue I tried to clean my deps, refetch and recompile them.
Now, running
mix deps.compile
yieldsI'm able to compile when only
ex_money
is listed as a dependency, but not once I addex_money_sql
.I'm using
{:ecto_sql, "~> 3.0"}
.If I don't include
ex_money_sql
(so I can compile), and poke around in iex it appears that among the conditional clauses in https://github.com/kipcole9/money_sql/blob/master/lib/money/migration.ex have the following values: line 4true
, line 10false
, line 16true
.Let me know if I can provide any other relevant info.
===
If I use the master branch as the dependency, I get the same error. But after commenting lines 4 and 8 in https://github.com/kipcole9/money_sql/blob/master/lib/money/migration.ex, I get the following when recompiling:
Sooo, using the
master
branch of BOTHex_money
andex_money_sql
(and usingoverride: true
inex_money
to override the version specified as theex_money_sql
dependency), I then run in to issue #1 (so I guess it's not fixed on master?).Then, I can apply the work around indicate there:
And THEN the migration works. So it seems that once the migration looks for the files in the right place (or they are moved to where they're expected), bumping version numbers on both packages should solve the issues.