Stream: bugs

Topic: roc build not compiling app sibling modules


view this post on Zulip nandi (Jan 21 2026 at 00:43):

view this post on Zulip Luke Boswell (Jan 21 2026 at 06:18):

Is this a question or bug report?

view this post on Zulip Luke Boswell (Jan 21 2026 at 06:19):

Have you observed some behaviour that isn't right?

view this post on Zulip nandi (Jan 21 2026 at 06:37):

Is it a bug that roc build doesnt compile sibling modules?

view this post on Zulip Luke Boswell (Jan 21 2026 at 06:46):

I don't understand what you mean by doesn't compile sibling modules.

Like if I have an app, with an import Foo in it -- you can't use Foo with roc build app.roc but you can with roc app.roc?

view this post on Zulip nandi (Jan 21 2026 at 06:53):

It has to be in platform folder in roc build

view this post on Zulip nandi (Jan 21 2026 at 06:54):

Which kinda breaks for modules that aren't in platforms

view this post on Zulip Luke Boswell (Jan 22 2026 at 22:02):

I've reproduced this... should be able to fix it soon

view this post on Zulip Luke Boswell (Jan 22 2026 at 22:58):

ok fixed it... but going to take a side quest to refactor things and hopefully eliminate this kind of bug from happening again

view this post on Zulip nandi (Jan 22 2026 at 23:02):

what do you mean "this kind of bug"?

view this post on Zulip Luke Boswell (Jan 22 2026 at 23:11):

Where there are different code paths roc check roc test roc build etc doing the same thing in different ways

view this post on Zulip Luke Boswell (Jan 22 2026 at 23:12):

Just refactor the common parts into helpers and keep things DRY

view this post on Zulip Rick Hull (Jan 22 2026 at 23:32):

I had noticed some different behavior with roc build that was unexpected but assumed I was Doing It Wrong. i think i hit this, though

view this post on Zulip Luke Boswell (Jan 23 2026 at 00:10):

https://github.com/roc-lang/roc/pull/9072


Last updated: Feb 20 2026 at 12:27 UTC