Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CARGO_HOME from docker env var #262

Merged
merged 1 commit into from
May 2, 2024
Merged

Remove CARGO_HOME from docker env var #262

merged 1 commit into from
May 2, 2024

Conversation

dariocurr
Copy link
Contributor

@dariocurr dariocurr commented Apr 30, 2024

Hi, I'm Dario.

Using this action, I encountered a strange error. Then I realized that the problem was that I had set the CARGO_HOME environment variable in a previous step and that this variable was passed as -e argument to the docker run command.
So, when trying to use the rustup command the wrong PATH was used instead of the immediately previous one installed.

I believe this is a dangerous misconfiguration that may lead to an unusable action for some users.
For this reason I would explicitly exclude some variables such as CARGO_HOME that should not be passed.

@dariocurr dariocurr changed the title Remove CARGO_HOME from passed env var Remove CARGO_HOME from docker env var Apr 30, 2024
@dariocurr
Copy link
Contributor Author

Since dtolnay/rust-toolchain#108 got merged, I guess this PR is very useful

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@messense messense merged commit ff524a2 into PyO3:main May 2, 2024
32 checks 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.

2 participants