Skip to content

Refactor Bazel cache configuration in on_create_command.sh#19

Merged
AlexanderLanin merged 2 commits intoeclipse-score:mainfrom
elektrobit-contrib:devcontainer-issues-18
Aug 19, 2025
Merged

Refactor Bazel cache configuration in on_create_command.sh#19
AlexanderLanin merged 2 commits intoeclipse-score:mainfrom
elektrobit-contrib:devcontainer-issues-18

Conversation

@opajonk
Copy link
Contributor

@opajonk opajonk commented Aug 14, 2025

This changes the logic of how a Bazel cache from a host is used:

  • In case /var/cache/bazel exists, it is one mounted from the host into the container, and we should use it
  • Otherwise, simply let Bazel do it's thing and use ${HOME}/.cache/bazel. There is nothing to re-use anyway. This is the case for CodeSpaces, for example; hence this closes codespace support #18

@opajonk opajonk marked this pull request as ready for review August 14, 2025 15:04
@opajonk opajonk requested a review from lurtz August 15, 2025 05:41
@AlexanderLanin AlexanderLanin merged commit 1c8be1b into eclipse-score:main Aug 19, 2025
2 checks passed
@opajonk opajonk deleted the devcontainer-issues-18 branch August 19, 2025 13:14
@opajonk opajonk mentioned this pull request Aug 19, 2025
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.

codespace support

3 participants