Commit 000dc1f
authored
enforce python3.11 as cloudsdk_python (#5044)
Even after setting the $CLOUDSDK_PYTHON correctly to be persisted on the
image on #5039, the gsutil command continues to try to use python3.8.
The screenshot below shows that the env var is set and the gsutil is
getting the correct Python version.
<img width="910" height="369" alt="image"
src="https://github.com/user-attachments/assets/70cc8c51-3534-4091-b451-690b6b598f3a"
/>
But in this [Batch
log](https://pantheon.corp.google.com/batch/jobsDetail/regions/us-central1/jobs/j-221811e7-1ec3-4571-8195-beb65a5b666d/logs?e=-13802955&mods=logs_tg_prod&project=clusterfuzz-development),
the gsutil is still using python3.8 and failing.
It seems that for some reason the env var is being unset or overriden
before reaching the gsutil command.
This PR explicitly set the env var in the only file that performs the
gcloud/gsutil command for python3.11.
Signed-off-by: Javan Lacerda <[email protected]>1 parent 44e99b1 commit 000dc1f
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments