Railpack command parsing
pedrograaff
PROOP

a month ago

When using railpack with an install command like:

pip install .[workers]

it pareses out the part in between brackets and only does "pip install ."

its strange since you can see that it is being recognized:

Steps ────────── ▸ install $ pip install .[workers] Deploy ──────────

but in the end it only does:

copy / /app 547ms pip install .

i already tried variations like

pip install '.[workers]'

pip install -e .[workers]

Solved

1 Replies

This looks like a parsing issue where Railpack is stripping the bracket syntax from your install command. Since you've already tried single quotes without success, there are a couple of workarounds.

The cleanest approach is to put the install specification in a requirements.txt file instead. Add a line with just .[workers] (or -e .[workers] if you need editable mode) and Railpack will handle it during the automatic dependency installation step without you needing to override the install command at all.

If you need more control, you could use a Dockerfile where shell escaping behaves predictably—something like RUN pip install ".[workers]" will work as expected.

This does seem like a bug in Railpack's command parsing. If the requirements.txt workaround doesn't fit your workflow, it's worth opening an issue at github.com/railwayapp/railpack with the details you've shared here—the fact that it displays correctly in the steps output but executes differently is useful debugging info.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 1 month ago


Loading...