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
I pulled the latest mint and built it after upgrading to crystal 0.25 - but when I run mint build I get the following error:
Clearing the "dist" directory... 1.034ms
Unhandled exception: Error reading file: Is a directory (Errno)
from File@Crystal::System::FileDescriptor#unbuffered_read<Slice(UInt8)>:Int32
from FileUtils@FileUtils::cp<String, String>:Int32
from Mint::Builder#initialize:Nil
from Mint::Cli::Build#parse_and_run:Nil
from __crystal_main
from main
⚙ Copying public folder contents...
These are the only files I have in my project dir:
ls -al
total 16
drwxr-xr-x 10 c0252355 1001184655 340 17 Jun 21:38 .
drwxr-xr-x 30 c0252355 1001184655 1020 13 Jun 08:52 ..
drwxr-xr-x 16 c0252355 1001184655 544 17 Jun 21:38 .git
-rw-r--r-- 1 c0252355 1001184655 10 13 Jun 08:53 .gitignore
drwxr-xr-x 3 c0252355 1001184655 102 13 Jun 08:54 .mint
drwxr-xr-x 3 c0252355 1001184655 102 17 Jun 14:41 assets
drwxr-xr-x 7 c0252355 1001184655 238 17 Jun 21:38 dist
-rw-r--r-- 1 c0252355 1001184655 394 13 Jun 08:53 mint.json
drwxr-xr-x 8 c0252355 1001184655 272 17 Jun 15:51 public
drwxr-xr-x 7 c0252355 1001184655 238 17 Jun 21:33 source
The text was updated successfully, but these errors were encountered:
I think I've found the issue - it's because I have a directory inside the public directory. The current glob doesn't seem to cope with sub directories:
FileUtils.cp Dir.glob("public/**/*"), "dist"
kingsleyh
changed the title
Can't package/build code with latest mint
mint build - doesn't work when public dir has a sub folder
Jun 17, 2018
Hi
I pulled the latest mint and built it after upgrading to crystal 0.25 - but when I run
mint build
I get the following error:These are the only files I have in my project dir:
The text was updated successfully, but these errors were encountered: