You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you include micrate in a shard.yml and run shards install it does not include mysql (and sqlite3) which are dependencies for micrate. This is the error you get when you try build a project with micrate as a dependency.
$ shards build
Dependencies are satisfied
Building: micrate
Error target micrate failed to compile:
Showing last frame. Use --error-trace for full trace.
In lib/micrate/src/micrate-bin.cr:3:1
3 | require "mysql"
^
Error: can't find file 'mysql'If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?
If you include micrate in a shard.yml and run shards install it does not include mysql (and sqlite3) which are dependencies for micrate. This is the error you get when you try build a project with micrate as a dependency.
my project shard.yml
output of shards install
Moving mysql and sqlite from dependencies to dev dependencies seems to be the cause as adding these to my shard.yml and doing shards install fixes this issue. 6d88fb4#diff-cbaa8062ee0fcfb5af8adfd98f69af4766b9ad5bb5e79158abe8da34f6fd7de0
The text was updated successfully, but these errors were encountered: