gemini-code-assist[bot] commented on code in PR #38918:
URL: https://github.com/apache/beam/pull/38918#discussion_r3395064538
##########
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy:
##########
@@ -3142,6 +3142,8 @@ class BeamModulePlugin implements Plugin<Project> {
installTargets = "${distTarBall}[${packages},${extra}]"
}
project.exec {
+ // Per-project uv cache avoids sdist lock contention in parallel
installGcpTest.
+ environment 'UV_CACHE_DIR', "${project.ext.envdir}/.uv-cache"
Review Comment:

Using a relative path for `UV_CACHE_DIR` can be problematic if the
execution's working directory changes or if `uv` resolves relative paths
unexpectedly. Converting it to an absolute path using
`project.file(...).absolutePath` is more robust and ensures a standard `String`
is passed to the environment.
```
environment 'UV_CACHE_DIR',
project.file("${project.ext.envdir}/.uv-cache").absolutePath
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]