licensing: fix setup for creating license keys locally and for testing features in a local instance (#41150)

Fix function to generate license key; add env var to the repo-updater
This commit is contained in:
Michelle Veronese 2022-09-01 12:27:23 -07:00 committed by GitHub
parent 2ad6d9809c
commit 5e42f789a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
licenseKey, err := license.GenerateSignedKey(info, privateKey)
licenseKey, _, err := license.GenerateSignedKey(info, privateKey)
if err != nil {
log.Fatal(err)
}

View File

@ -249,7 +249,9 @@ commands:
- cmd/repo-updater
repo-updater:
cmd: .bin/repo-updater
cmd: |
export SOURCEGRAPH_LICENSE_GENERATION_KEY=$(cat ../dev-private/enterprise/dev/test-license-generation-key.pem)
.bin/repo-updater
install: |
if [ -n "$DELVE" ]; then
export GCFLAGS='all=-N -l'