Skip to content

Conversation

paulober
Copy link

@paulober paulober commented Oct 6, 2025

detect_version() in the sdk west command used os.environ["ZEPHYR_BASE"], which raises a KeyError when the variable is absent, preventing the fallback path from running. Switch to os.environ.get("ZEPHYR_BASE") and use Path(__file__).resolve() for the fallback so the path is absolute/canonical.

(@tdewey-rpi @will-v-pi)

Copy link

github-actions bot commented Oct 6, 2025

Hello @paulober, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@pdgendt
Copy link
Contributor

pdgendt commented Oct 6, 2025

Please take a look at the compliance issue, you can't use a hidden e-mail address when contributing to Zephyr.

@carlescufi
Copy link
Member

@paulober you need to amend your commit to set the same email address as the one in your signed-off-by line.

detect_version() used os.environ["ZEPHYR_BASE"],
which raises a KeyError when the variable is
absent, preventing the fallback path from running.
Switch to os.environ.get("ZEPHYR_BASE") and use
Path(__file__).resolve() for the fallback so the
path is absolute/canonical.

Signed-off-by: Paul Oberosler <[email protected]>
Copy link

sonarqubecloud bot commented Oct 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants