Skip to content

Another error with google-github-actions/setup-gcloud #3169

@parak

Description

@parak

Finally had a chance to test 5.46.0, which still generates an error with gcloud but adifferent one:

Run google-github-actions/setup-gcloud@v3
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/af9b9d15-5bea-462b-93b2-8876276ea1f7 -f /home/runner/work/_temp/1edb1bcc-c8f6-4b63-9c5f-9bcf5e8a842e
Error: google-github-actions/setup-gcloud failed with: failed to execute command `gcloud --quiet auth login --force --cred-file /home/runner/work/<repo>/<repo>/gha-creds-513dd5e9ec25fccc.json`: Traceback (most recent call last):
  File "<string>", line 104, in <module>
    exec('__file__="/home/runner/work/_temp/af9b9d15-5bea-462b-93b2-8876276ea1f7/google-cloud-sdk/lib/gcloud.py"\n' + file.read())
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 21
Syntaxfrom __future__ imports must occur at the beginning of the file

Much appreciated as always for looking into these.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions