Skip to content

CI: Fix PATH issues by using source for cargo env#9

Merged
ammario merged 3 commits intomainfrom
ci-fix
Sep 10, 2025
Merged

CI: Fix PATH issues by using source for cargo env#9
ammario merged 3 commits intomainfrom
ci-fix

Conversation

@ammario
Copy link
Copy Markdown
Member

@ammario ammario commented Sep 10, 2025

The previous commit changed from 'source ~/.cargo/env' to manually setting PATH, but sudo doesn't preserve PATH by default. Using source ensures the full environment is properly configured including system paths needed for commands like sysctl.

The previous commit changed from 'source ~/.cargo/env' to manually
setting PATH, but sudo doesn't preserve PATH by default. Using source
ensures the full environment is properly configured including system
paths needed for commands like sysctl.
The self-hosted runner doesn't have /home/ci/.cargo/env, so we need
to fallback to ~/.cargo/env for the current user.
The explicit PATH passing wasn't working due to sudo's environment
restrictions. Reverting to the simpler approach that was working
before commit 5c391a1.
@ammario ammario merged commit b4a0d4a into main Sep 10, 2025
6 checks passed
@ammario ammario deleted the ci-fix branch September 10, 2025 16:04
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