So I just tried publishing a package on Github via hashed tarball. I tried importing the package via Roc's package downloading functionality, but it seems every expect statement used in my package internals is throwing a MODULE NOT IMPORTED
error.
IE: ── MODULE NOT IMPORTED in ...nv2LpABZzVYHlata79rpfaF_bJaxsbYMLtk-mF_w/Time.roc ─
What did I do wrong here?
Im not sure, I haven't seen that before.
I use @Hannes Github Action which has been working nicely https://github.com/Hasnep/bundle-roc-library
Which module is it saying isn't imported?
How did you make the hashed tarball? Did you use roc build --bundle .tar.br package/main.roc
?
I also used Hannes' hasnep/bundle-roc-library
Which module is it saying isn't imported?
Pretty much all of them lol
I've got 111 errors I believe, and they're all pretty much the same, but various Modules in various locations. All at expect statements.
── MODULE NOT IMPORTED in ...nv2LpABZzVYHlata79rpfaF_bJaxsbYMLtk-mF_w/Time.roc ─
The `UtcTime` module is not imported:
350│ expect toUtcTime { hour: 12, minute: 34, second: 56, nanosecond: 5 } == UtcTime.fromNanosSinceMidnight (12 * nanosPerHour + 34 * nanosPerMinute + 56 * nanosPerSecond + 5 )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean to import it?
───────────────────────────────────────────────────
111 errors and 3 warnings found in 51 ms
I was really hoping this was just a case of obvious PEBCAK! :sweat_smile:
QQ: Anyone know where the default download directory is for packages roc downloads from a url?
This is likely caused by #5477, which will be fixed when #6658 lands.
For now, you can try importing the modules in your app even if you don’t use them directly.
The example in the issue involves two packages, but it can happen with only one package
QQ: Anyone know where the default download directory is for packages roc downloads from a url?
~/.cache/roc/packages/
Awesome, thanks @Agus Zubiaga and @Brendan Hansknecht!
Last updated: Jul 06 2025 at 12:14 UTC