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

x/pkgsite: error starting frontend locally #42921

Closed
catzkorn opened this issue Dec 1, 2020 · 1 comment
Closed

x/pkgsite: error starting frontend locally #42921

catzkorn opened this issue Dec 1, 2020 · 1 comment

Comments

@catzkorn
Copy link
Contributor

catzkorn commented Dec 1, 2020

What version of Go are you using (go version)?

go1.15.5

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/charlotte/Library/Caches/go-build"
GOENV="/Users/charlotte/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/charlotte/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/charlotte/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/charlotte/src/pkgsite/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9g/lm8bfm3170d5zbpfxk68hgl80000gn/T/go-build274431613=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ go run ./cmd/frontend              

What did you expect to see?

I expected the server to start.

What did you see instead?

2020/12/01 11:03:49 Critical: config.Init(ctx): secrets.Get(ctx, "quota-hmac-key"): need GOOGLE_CLOUD_PROJECT environment variable
exit status 1

This was introduced in golang/pkgsite@3f9e3bf and breaks any exisiting local workflows.

This can be resolved by setting env var GO_DISCOVERY_DISABLE_QUOTA to TRUE but is not documented in the documentation.

I intend to fix this issue by submitting a documentation update.

@ALTree ALTree changed the title pkgsite: error starting frontend locally x/pkgsite: error starting frontend locally Dec 1, 2020
@gopherbot gopherbot added this to the Unreleased milestone Dec 1, 2020
@julieqiu
Copy link
Member

julieqiu commented Dec 1, 2020

@julieqiu julieqiu closed this as completed Dec 1, 2020
@golang golang locked and limited conversation to collaborators Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants