ruimarinho / gsts

Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
MIT License
217 stars 38 forks source link

GSTS fails to spawn headful instance if called directly #5

Closed charlespierce closed 4 years ago

charlespierce commented 4 years ago

This is admittedly a very corner case, but with how gsts respawns itself into a headful instance here: https://github.com/ruimarinho/gsts/blob/3d7a1ef28d25b3fe8c442e461b20120e050cace9/index.js#L420

It fails if gsts isn't on the PATH. It came up within the context of Volta, which manages global installs and calls the tools directly instead of leaving them on the PATH, but could also come up if a user has gsts installed locally in a project and calls ./node_modules/.bin/gsts, instead of having it globally installed.