Gcloud components update version restriction



How can we restrict the Gcloud components version to a specific version.
Currently the latest version of Gcloud is 106.0.0 but it has introduced a bunch of changes which breaks our deployment code.
So we would like to restrict it to version 104.0.0 but a simple gcloud components update --version 104.0.0 won’t work for us because of permission errors?
Is there anyway to do this?



Currently, the gcloud command needs to be run as root with the full path of the binary (we’re working to make that better). From this guide, try using sudo /opt/google-cloud-sdk/bin/gcloud instead of just gcloud.