Skip to content

Conversation

@fabiobaltieri
Copy link
Member

The Zephyr SDK install has a step where it tweaks the library paths of the host utilities so match the full install path and have them run without having to set LD_LIBRARY_PATH. In the current setup that path includes the repository name, which means that if the repository is renamed the cached SDK is going to end up having a non working path leading to a confusing error, typically dtc not found.

Make the repository name part of the SDK cache key, so that if the repository is renamed, the cached sdk with the wrong path is not reused.

The Zephyr SDK install has a step where it tweaks the library paths of
the host utilities so match the full install path and have them run
without having to set LD_LIBRARY_PATH. In the current setup that path
includes the repository name, which means that if the repository is
renamed the cached SDK is going to end up having a non working path
leading to a confusing error, typically dtc not found.

Make the repository name part of the SDK cache key, so that if the
repository is renamed, the cached sdk with the wrong path is not reused.

Signed-off-by: Fabio Baltieri <[email protected]>
@fabiobaltieri
Copy link
Member Author

cc @gmarull

@henrikbrixandersen
Copy link
Member

The Zephyr SDK install has a step where it tweaks the library paths of the host utilities so match the full install path and have them run without having to set LD_LIBRARY_PATH. In the current setup that path includes the repository name, which means that if the repository is renamed the cached SDK is going to end up having a non working path leading to a confusing error, typically dtc not found.

Make the repository name part of the SDK cache key, so that if the repository is renamed, the cached sdk with the wrong path is not reused.

Just to understand the issue correctly - this only happens if you rename the GitHub repository after this action has been run at least once from a workflow under the old repository name?

@fabiobaltieri
Copy link
Member Author

Just to understand the issue correctly - this only happens if you rename the GitHub repository after this action has been run at least once from a workflow under the old repository name?

Yeah that's right.

@fabiobaltieri fabiobaltieri merged commit c125c5e into zephyrproject-rtos:main Sep 15, 2025
47 of 48 checks passed
@fabiobaltieri fabiobaltieri deleted the sdk-path branch September 15, 2025 10:30
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.

4 participants