Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use asdf exec-env to set CLOUDSDK_PYTHON on each gcloud cmd use #14

Merged
merged 5 commits into from
Mar 8, 2020

Conversation

jthegedus
Copy link
Owner

asdf exec-env is run before each use of the command (in this case gcloud). We can use this to set the CLOUDSDK_PYTHON env var which is required by gcloud.

Implementation:

  • guards against missing python
  • will not override CLOUDSDK_PYTHON if already present

Closes #13

@jthegedus jthegedus self-assigned this Mar 7, 2020
@jthegedus jthegedus added the enhancement New feature or request label Mar 7, 2020
@jthegedus
Copy link
Owner Author

working on a fix for this, will be out tomorrow.

@vic
Copy link

vic commented Mar 7, 2020

LGTM 👍

fix: error logging for python during exec


do not require unset


prints


not empty


fix


fix


fix


fix


fix


test


test


test


test


feat: use asdf exec-env to set CLOUDSDK_PYTHON on each gcloud cmd use
@jthegedus jthegedus merged commit 0a30972 into master Mar 8, 2020
@jthegedus jthegedus deleted the feature/set-cloudsdk-python branch March 8, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add bin/exec_env to customize environment.
2 participants