Skip to content

Fix Modal deploy: source cargo env in build_package.sh#9

Merged
nikhilwoodruff merged 1 commit intomainfrom
fix-modal-deploy
Apr 5, 2026
Merged

Fix Modal deploy: source cargo env in build_package.sh#9
nikhilwoodruff merged 1 commit intomainfrom
fix-modal-deploy

Conversation

@nikhilwoodruff
Copy link
Copy Markdown
Contributor

The Modal image build runs build_package.sh which calls bare cargo, but ~/.cargo/env isn't sourced in non-interactive shells. This adds a source line at the top of the script so cargo is found on PATH.

interfaces/python/build_package.sh: line 11: cargo: command not found

The build script calls bare `cargo` which isn't on PATH in
non-interactive shells during Modal image builds. Source
$HOME/.cargo/env first.

Co-Authored-By: Claude <noreply@anthropic.com>
@nikhilwoodruff nikhilwoodruff merged commit f2c12a0 into main Apr 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant