File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed
Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,26 @@ if [[ "${AGENT_SANDBOX_BIND_HOME:-false}" == "true" ]]; then
432432fi
433433
434434# Common language tooling cache directories
435- for cache_path in " $HOME /.cache/go-build" " $HOME /.cargo" " $HOME /.cache/pip" " $HOME /.gem" " $HOME /.cache/yarn" " $HOME /.npm" " $HOME /.local/share/pnpm" " $HOME /.bun" ; do
435+ # Only mount if they exist to avoid cluttering logs
436+ for cache_path in \
437+ " $HOME /.cache/go-build" \
438+ " $HOME /.cargo" \
439+ " $HOME /.cache/pip" \
440+ " $HOME /.gem" \
441+ " $HOME /.cache/yarn" \
442+ " $HOME /.npm" \
443+ " $HOME /.local/share/pnpm" \
444+ " $HOME /.bun" \
445+ " $HOME /.gradle" \
446+ " $HOME /.m2" \
447+ " $HOME /.composer" \
448+ " $HOME /.cache/composer" \
449+ " $HOME /.nuget/packages" \
450+ " $HOME /.vcpkg" \
451+ " $HOME /.pub-cache" \
452+ " $HOME /.swiftpm" \
453+ " $HOME /.hex" \
454+ " $HOME /.mix" ; do
436455 [[ -d " $cache_path " ]] && SANDBOX_MOUNTS_RW+=(" $cache_path " )
437456done
438457
Original file line number Diff line number Diff line change 153153 (subpath (param "HOME_NPM"))
154154 (subpath (param "HOME_SHARE_PNPM"))
155155 (subpath (param "HOME_BUN"))
156+ (subpath (param "HOME_GRADLE"))
157+ (subpath (param "HOME_M2"))
158+ (subpath (param "HOME_COMPOSER"))
159+ (subpath (param "HOME_CACHE_COMPOSER"))
160+ (subpath (param "HOME_NUGET"))
161+ (subpath (param "HOME_VCPKG"))
162+ (subpath (param "HOME_PUB_CACHE"))
163+ (subpath (param "HOME_SWIFTPM"))
164+ (subpath (param "HOME_HEX"))
165+ (subpath (param "HOME_MIX"))
156166)
157167
158168;; ==============================================================================
Original file line number Diff line number Diff line change @@ -72,6 +72,16 @@ SANDBOX_PARAMS+=("-DHOME_CACHE_YARN=$HOME/.cache/yarn")
7272SANDBOX_PARAMS+=(" -DHOME_NPM=$HOME /.npm" )
7373SANDBOX_PARAMS+=(" -DHOME_SHARE_PNPM=$HOME /.local/share/pnpm" )
7474SANDBOX_PARAMS+=(" -DHOME_BUN=$HOME /.bun" )
75+ SANDBOX_PARAMS+=(" -DHOME_GRADLE=$HOME /.gradle" )
76+ SANDBOX_PARAMS+=(" -DHOME_M2=$HOME /.m2" )
77+ SANDBOX_PARAMS+=(" -DHOME_COMPOSER=$HOME /.composer" )
78+ SANDBOX_PARAMS+=(" -DHOME_CACHE_COMPOSER=$HOME /.cache/composer" )
79+ SANDBOX_PARAMS+=(" -DHOME_NUGET=$HOME /.nuget/packages" )
80+ SANDBOX_PARAMS+=(" -DHOME_VCPKG=$HOME /.vcpkg" )
81+ SANDBOX_PARAMS+=(" -DHOME_PUB_CACHE=$HOME /.pub-cache" )
82+ SANDBOX_PARAMS+=(" -DHOME_SWIFTPM=$HOME /.swiftpm" )
83+ SANDBOX_PARAMS+=(" -DHOME_HEX=$HOME /.hex" )
84+ SANDBOX_PARAMS+=(" -DHOME_MIX=$HOME /.mix" )
7585
7686# Handle BWRAP_EXTRA_PATHS by adding write permissions
7787if [[ -n " ${BWRAP_EXTRA_PATHS:- } " ]]; then
You can’t perform that action at this time.
0 commit comments