Railpack build failed to install protoc

jimmy-sm
PROOP

a month ago

Build fails as additional dependencies aren't being picked up.

  • Railpack shows an example of adding mise dependences RAILPACK_PACKAGES="node bun@latest python@3.10"https://railpack.com/guides/installing-packages

  • Protobuf compiler is a mise tool https://mise.jdx.dev/registry.html?filter=protoc#tools

  • Setting RAILPACK_PACKAGES="protoc" the build fails and it does not seem to be recognized ```[Region: us-east4]

    ╭────────────────╮

    │ Railpack 0.9.0 │

    ╰────────────────╯

    ↳ Detected Node

    ↳ Using bun package manager

    Packages

    ──────────

    node │ 22.20.0 │ package.json > engines > node (22)

    bun │ 1.2.19 │ package.json > packageManager (1.2.19)

    Steps

    ──────────

    ▸ install

    $ bun install --frozen-lockfile

    ▸ build

    $ bun generate:proto && bun run build

    Deploy

    ──────────

    $ bun start

    Successfully prepared Railpack plan for build

    context: 9ll9-Qazc

    load build definition from railpack-plan.json

    0ms

    install mise packages: bun, node

    2s

    mise node@22.20.0 ✓ installed```

Solved$10 Bounty

5 Replies

Railway
BOT

a month ago


jimmy-sm
PROOP

a month ago

So, the main issue is this build log install mise packages: bun, node which is missing RAILPACK_PACKAGES="protoc"


jimmy-sm
PROOP

a month ago

This actually works when i create this RAILPACK_PACKAGES env var in the UI, but does NOT work when its set in railway.toml


a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 1 month ago


a month ago

Seems like the issue here is already solved. Regarding the railway.toml file, that's only for Railway's specific features. For Railpack, you'll need to use railpack.json instead.


passos

Seems like the issue here is already solved. Regarding the railway.toml file, that's only for Railway's specific features. For Railpack, you'll need to use railpack.json instead.

jimmy-sm
PROOP

a month ago

Yes, thank you for the help though!


Status changed to Solved brody about 1 month ago


Loading...