cloudspannerecosystem/wrench

Project cannot be overridden

execjosh opened this issue · 0 comments

Expected Behavior

The value specified by either flag --project or env var SPANNER_PROJECT_ID is used.

Current Behavior

The value of the default configuration in gcloud is used.

This was discovered because the default project I have set does not have Cloud Spanner API enabled.

Steps to Reproduce

  1. go install within cloned repo at v1.0.3
  2. setup a default configuration in gcloud that does not have cloud spanner api enabled
  3. try to override project: wrench --project ...
  4. error

Context (Environment)

  • wrench version: v1.0.3
  • go version: go1.14.2