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

Error running #5

Closed
nikitavoloboev opened this issue Apr 2, 2019 · 6 comments
Closed

Error running #5

nikitavoloboev opened this issue Apr 2, 2019 · 6 comments

Comments

@nikitavoloboev
Copy link

On v1.0.1 I first as README says ran g-refresh. Got this in console:

[2019-04-02 17:22:36][ERROR: action.script] panic: failed to create google client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

goroutine 1 [running]:
main.refresh(0x132dfc3, 0x5)
	/Users/jarle/dev/src/github.com/jarlefosen/alfred-gcloud-shortcuts/gcloud-butler/main.go:42 +0x100
main.main()
	/Users/jarle/dev/src/github.com/jarlefosen/alfred-gcloud-shortcuts/gcloud-butler/main.go:82 +0x1d4

Where do I fill these credentials in? Doesn't say in README.

Also its good to include Placeholder Title in the script filter:

2019-04-02 at 17 23

g was taken by Searchio for me.

@jarlefosen
Copy link
Owner

This should have been specified in the README.
The script assumes that the gcloud tool is installed and that you are authenticated through it.
https://cloud.google.com/sdk/

@teebot
Copy link
Contributor

teebot commented Oct 3, 2019

I had gcloud installed an logged in but still it wasn't working. Turns out gcloud no longer writes application default credentials without gcloud auth application-default login

Since then it works perfectly! thx for the workflow @jarlefosen big time saver :)

PS: also I had to brew install coreutils for the scripts to work

@vervallsweg
Copy link
Contributor

I had gcloud installed an logged in but still it wasn't working. Turns out gcloud no longer writes application default credentials without gcloud auth application-default login

Since then it works perfectly! thx for the workflow @jarlefosen big time saver :)

PS: also I had to brew install coreutils for the scripts to work

Sorry to comment on the closed issue, but this should really be part of the readme.

Everything else is perfect, thanks for the work!

@teebot
Copy link
Contributor

teebot commented Oct 18, 2019

@vervallsweg open a PR then :) the author is super quick to respond :)

@jarlefosen
Copy link
Owner

@vervallsweg you're absolutely right, this should've been a part of the README.
I have updated the workflow to a version v2.0.0, and I'm not quite sure if coreutils is a requirement anymore. To be honest I don't know what was using this in the first place.

Could you help me verify whether this latest version requires coreutils or not?

When it comes to gcloud, I've added a note at the bottom of the README that it's required and that you have to authenticate. Again, since the v2 update, it could be that you don't really need to perform gcloud auth application-default login.

The very best thing would be for you to open a PR with the steps you had to do to get this installed and working! I never had these issues since I had all tools installed and authenticated from the beginning.

@teebot
Copy link
Contributor

teebot commented Oct 18, 2019

@jarlefosen the use of realpath in the bash script required coreutils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants