Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run",
"modification": 3
"modification": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -3143,9 +3143,11 @@ class BeamModulePlugin implements Plugin<Project> {
if (extra) {
installTargets = "${distTarBall}[${packages},${extra}]"
}
def uvCacheDir = "${project.ext.envdir}/.uv_cache"
project.exec {
executable 'sh'
args '-c', ". ${project.ext.envdir}/bin/activate && pip install uv && uv pip install --pre ${installTargets}"
// Default uv cache is global; py310/py314 installGcpTest fight over the same lock.
args '-c', ". \"${project.ext.envdir}/bin/activate\" && pip install uv && uv pip install --cache-dir \"${uvCacheDir}\" --pre \"${installTargets}\""
}
Comment on lines +3146 to 3151

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

If the project path or virtual environment directory (envdir) contains spaces (which is common in local development environments), executing the shell command without quotes will fail. It is safer to wrap the paths in double quotes within the shell command to ensure robustness.

          def uvCacheDir = "${project.ext.envdir}/.uv_cache"
          project.exec {
            executable 'sh'
            // Default uv cache is global; py310/py314 installGcpTest fight over the same lock.
            args '-c', ". \"${project.ext.envdir}/bin/activate\" && pip install uv && uv pip install --cache-dir \"${uvCacheDir}\" --pre \"${installTargets}\""
          }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment looks reasonable.

}
}
Expand Down
Loading