lucydavinhart / api.lmhd.me

The shiny new LMHD API
1 stars 0 forks source link

Can't build in Circle #5

Open lucymhdavies opened 3 years ago

lucymhdavies commented 3 years ago

https://app.circleci.com/pipelines/github/lucydavinhart/api.lmhd.me/36/workflows/ee6f4029-34cf-4964-8e86-9ff4d9e0c320/jobs/69

#!/bin/bash -eo pipefail
go get -v -t -d ./...
github.com/aws/aws-lambda-go (download)
github.com/rodaine/hclencoder (download)
github.com/hashicorp/hcl (download)
package github.com/hashicorp/hcl/hcl/ast: cannot find package "github.com/hashicorp/hcl/hcl/ast" in any of:
    /usr/local/go/src/github.com/hashicorp/hcl/hcl/ast (from $GOROOT)
    /go/src/github.com/hashicorp/hcl/hcl/ast (from $GOPATH)
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
    /usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
    /go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)
package github.com/hashicorp/hcl/hcl/token: cannot find package "github.com/hashicorp/hcl/hcl/token" in any of:
    /usr/local/go/src/github.com/hashicorp/hcl/hcl/token (from $GOROOT)
    /go/src/github.com/hashicorp/hcl/hcl/token (from $GOPATH)
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)

Exited with code exit status 1
CircleCI received exit code 1
lucymhdavies commented 3 years ago

It does build... but thanks to the new tests, it can no longer be tested in Circle.

========================================
Testing Auth
========================================

./issue-cert.sh: line 9: vault: command not found
unable to load certificate
139887503323200:error:0906D06C:PEM routines:PEM_read_bio:no start line:../crypto/pem/pem_lib.c:686:Expecting: TRUSTED CERTIFICATE
curl: (22) The requested URL returned error: 401 
Makefile:32: recipe for target 'test-dev' failed
make: *** [test-dev] Error 22

Need to allow Circle to generate certs / disable authenticated tests in Circle

lucymhdavies commented 3 years ago

Maybe use https://github.com/serverless/github-action instead

Or possibly https://cloud.serverless.com/

lucymhdavies commented 2 years ago

Migration to GitHub Actions is working okay, with creds provided by Vault. Thanks Vault GitHub JWT Auth!

Still using the Makefile version for now.