Skip to content

Project cannot be overridden #27

Description

@execjosh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions