cloudspannerecosystem / wrench

wrench - Schema management tool for Cloud Spanner -
MIT License
239 stars 46 forks source link

Project cannot be overridden #27

Open execjosh opened 4 years ago

execjosh commented 4 years ago

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)