PKG-473: Fix Docker mount race condition for ccache directory - #3
PKG-473: Fix Docker mount race condition for ccache directory#3nogueiraanderson wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
8dd5101 to
bd8ac11
Compare
Always creates .ccache directory before Docker mount to prevent build failures when directory doesn't exist: - Simple approach with minimal overhead - Maintains current Docker command structure - Fixes dependency assumption violation - Less risk than conditional mount logic Fixes build error: docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /path/to/.ccache
bd8ac11 to
c165ca8
Compare
Summary
Fixes Docker mount failure when .ccache directory doesn't exist.
Problem
Docker script assumes .ccache directory exists but dependency can be violated:
${env.WORKSPACE}/.ccache${ROOT_DIR}/.ccacheSolution
mkdir -p "${ROOT_DIR}/.ccache"