Railpack changes discovery strategy, leading to: failed to solve: mount options is too long
therobotcarlson
PROOP

a month ago

Previous UI builds were correctly only copying the root package.json, at some point in the last 17 hours, railpack has started recursively copying all package.json from the bun install cache. This fails the build with " failed to solve: mount options is too long"

10 Replies

therobotcarlson
PROOP

a month ago

Railpack changes discovery strategy, leading to: failed to solve: mount options is too long


therobotcarlson
PROOP

a month ago

Is there any way to fix this myself or is Railpack just broken now?


brody
EMPLOYEE

a month ago

@iloveitaly would have more context on what has changed.


therobotcarlson
PROOP

a month ago

Does appear to align with the timing of the two most recent commits on the railpack repo. My last successful build was ~17 hours ago, my first (failed) build didn't happen until ~12 hours ago. Are railpack versions in Railway in line with what is in the repo?


brody
EMPLOYEE

a month ago

Off the top of my head, I think we do pull the latest version



iloveitaly
HOBBY

a month ago

@therobotcarlson the railpack build that is used is tied to the latest release, not the latest commit. We haven't released anything in a couple days so if it worked earlier a couple days ago it should work now.

I have a feeling setting RAILPACK_DISABLE_CACHES=* would fix the issue


iloveitaly
HOBBY

a month ago

this definitely something we need to fix in the system though.


therobotcarlson
PROOP

a month ago

Thank you for the response. I should have dug more deeply into my own code instead of railpack.

At some point during the last 17 hours I added the offending folder .bun/install/cache to the repo in question despite it being in the .gitignore -> I did not even consider it a possibility that this folder had been pushed to the repo.


iloveitaly
HOBBY

a month ago

ahh interesting. Glad you figured out the issue!


Loading...