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

is_system_path: return False if path is None #28403

Merged
merged 2 commits into from Jan 17, 2022

Conversation

tldahlgren
Copy link
Contributor

@tldahlgren tldahlgren commented Jan 13, 2022

fixes #28006
fixes #22268

A bit of defensive programming in that a None (or empty string) is automatically rejected as a system path.

This change should prevent the erroneous TypeError reporting for issues such as #28006 and #22268.

@spackbot-app spackbot-app bot added the tests General test capability(ies) label Jan 13, 2022
@alalazo alalazo enabled auto-merge (squash) January 14, 2022 07:24
@alalazo alalazo added this to In progress in Spack v0.18.0 release via automation Jan 14, 2022
@alalazo alalazo added this to In progress in Spack v0.17.2 Release via automation Jan 14, 2022
@alalazo alalazo self-assigned this Jan 14, 2022
@alalazo alalazo mentioned this pull request Jan 14, 2022
24 tasks
@haampie
Copy link
Member

haampie commented Jan 14, 2022

@spackbot run pipeline

@alalazo alalazo merged commit f238835 into spack:develop Jan 17, 2022
Spack v0.18.0 release automation moved this from In progress to Done Jan 17, 2022
Spack v0.17.2 Release automation moved this from In progress to Done Jan 17, 2022
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Feb 1, 2022
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Feb 1, 2022
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Feb 8, 2022
EthanS94 pushed a commit to EthanS94/spack that referenced this pull request Feb 17, 2022
capitalaslash pushed a commit to capitalaslash/spack that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests General test capability(ies) utilities
Projects
No open projects
3 participants