Skip to content

Sanitize environment in package_with_root#1671

Merged
smoelius merged 2 commits into
masterfrom
sanitize-environment-in-package_with_root
Jun 9, 2025
Merged

Sanitize environment in package_with_root#1671
smoelius merged 2 commits into
masterfrom
sanitize-environment-in-package_with_root

Conversation

@smoelius

@smoelius smoelius commented Jun 7, 2025

Copy link
Copy Markdown
Collaborator

A problem arises when the linted project uses edition 2021 but the lints uses edition 2024.

If the environment is not sanitized, the edition 2021 tools are propagated to the lints via environment variables, and the lints fail to build. What's more, the errors are suppressed, and the generic "No libraries were found." is printed.

This change needs a test.

@smoelius
smoelius force-pushed the sanitize-environment-in-package_with_root branch 12 times, most recently from bbac75e to 44ff53e Compare June 9, 2025 22:41
@smoelius
smoelius enabled auto-merge June 9, 2025 22:42
@smoelius
smoelius force-pushed the sanitize-environment-in-package_with_root branch from 44ff53e to 477bac6 Compare June 9, 2025 22:51
@smoelius
smoelius force-pushed the sanitize-environment-in-package_with_root branch from 477bac6 to e837eb8 Compare June 9, 2025 22:53
@smoelius
smoelius added this pull request to the merge queue Jun 9, 2025
Merged via the queue into master with commit 1d92cd9 Jun 9, 2025
25 checks passed
@smoelius
smoelius deleted the sanitize-environment-in-package_with_root branch June 9, 2025 23:40
@smoelius

Copy link
Copy Markdown
Collaborator Author

Thanks to @fcasal for providing the repo that demonstrated this bug.

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