ory / oathkeeper

A cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests. Inspired by the BeyondCorp / Zero Trust white paper. Written in Go.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=hydra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.40.1 does not build on macos

radekg opened this issue · comments

Preflight checklist

Describe the bug

  • make docker fails on macos.
  • cannot run tests

Reproducing the bug

git clone --branch 0.40.1 --depth 1 https://github.com/ory/oathkeeper.git .
make docker
# see attached log output
go test ./...
# see attached log output

Relevant log output

Build:


make docker

CGO_ENABLED=0 GO111MODULE=on GOOS=linux GOARCH=amd64 go build
go: downloading github.com/ory/x v0.0.532
go: downloading github.com/ory/jsonschema/v3 v3.0.7
go: downloading github.com/go-openapi/runtime v0.24.2
go: downloading github.com/ory/analytics-go/v4 v4.0.3
go: downloading github.com/prometheus/client_golang v1.13.0
go: downloading github.com/go-openapi/errors v0.20.3
go: downloading github.com/go-openapi/swag v0.22.3
go: downloading github.com/Masterminds/sprig/v3 v3.2.2
go: downloading github.com/ory/herodot v0.9.13
go: downloading go.mongodb.org/mongo-driver v1.10.3
go: downloading github.com/hashicorp/go-retryablehttp v0.7.1
go: downloading github.com/tidwall/gjson v1.14.3
go: downloading github.com/segmentio/backo-go v1.0.1
go: downloading github.com/pkg/profile v1.7.0
go: downloading golang.org/x/crypto v0.1.0
go: downloading google.golang.org/grpc v1.50.1
go: downloading github.com/gobuffalo/pop/v6 v6.0.8
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.36.4
go: downloading github.com/goccy/go-yaml v1.9.6
go: downloading go.opentelemetry.io/contrib/propagators/b3 v1.11.1
go: downloading go.opentelemetry.io/contrib/propagators/jaeger v1.11.1
go: downloading go.opentelemetry.io/contrib/samplers/jaegerremote v0.5.2
go: downloading go.opentelemetry.io/otel/exporters/jaeger v1.11.1
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.9.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.9.0
go: downloading go.opentelemetry.io/otel/exporters/zipkin v1.11.1
go: downloading go.opentelemetry.io/otel/sdk v1.11.1
go: downloading github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf
go: downloading github.com/tidwall/sjson v1.2.5
go: downloading github.com/go-openapi/analysis v0.21.4
go: downloading github.com/go-openapi/loads v0.21.2
go: downloading github.com/go-openapi/spec v0.20.7
go: downloading github.com/imdario/mergo v0.3.13
go: downloading github.com/shopspring/decimal v1.3.1
go: downloading github.com/nyaruka/phonenumbers v1.1.1
go: downloading github.com/golang-jwt/jwt/v4 v4.0.0
go: downloading golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/jackc/pgx/v4 v4.17.2
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/avast/retry-go/v4 v4.3.0
go: downloading github.com/tidwall/match v1.1.1
go: downloading github.com/tidwall/pretty v1.2.1
go: downloading google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71
go: downloading golang.org/x/sys v0.4.0
go: downloading golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
go: downloading go.opentelemetry.io/proto/otlp v0.18.0
go: downloading github.com/openzipkin/zipkin-go v0.4.1
go: downloading golang.org/x/net v0.5.0
go: downloading github.com/google/go-replayers/httpreplay v1.1.1
go: downloading google.golang.org/api v0.84.0
go: downloading cloud.google.com/go/compute v1.7.0
go: downloading cloud.google.com/go/storage v1.22.1
go: downloading cloud.google.com/go/iam v0.3.0
go: downloading cloud.google.com/go v0.102.0
go: downloading github.com/go-sql-driver/mysql v1.6.0
go: downloading github.com/jackc/pgconn v1.13.0
go: downloading github.com/lib/pq v1.10.7
go: downloading github.com/google/pprof v0.0.0-20221010195024-131d412537ea
go: downloading go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.1
go: downloading golang.org/x/text v0.6.0
go: downloading github.com/jackc/pgtype v1.12.0
go: downloading github.com/golang/glog v1.0.0
go: downloading github.com/googleapis/go-type-adapters v1.0.0
go: downloading github.com/jackc/pgproto3/v2 v2.3.1
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/cenkalti/backoff/v4 v4.1.3
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.12.0
go: downloading github.com/google/martian/v3 v3.3.3-0.20220816151257-0f7e6797a04d
go: downloading github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa
spec/embed.go:8:19: pattern all:pipeline: no matching files found
make: *** [docker] Error 1


Tests:

```sh
$ go test ./...
go: downloading github.com/golang/mock v1.6.0
go: downloading github.com/gobuffalo/httptest v1.5.2
go: downloading github.com/auth0/go-jwt-middleware v1.0.1
go: downloading github.com/go-faker/faker/v4 v4.0.0-beta.2
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/spf13/afero v1.9.3
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/cockroachdb/cockroach-go/v2 v2.2.16
go: downloading github.com/ory/dockertest/v3 v3.9.1
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/gobuffalo/envy v1.10.2
go: downloading github.com/gobuffalo/fizz v1.14.4
go: downloading github.com/gobuffalo/flect v0.3.0
go: downloading github.com/gobuffalo/validate/v3 v3.3.3
go: downloading github.com/gofrs/uuid v4.3.0+incompatible
go: downloading github.com/gofrs/flock v0.8.1
go: downloading github.com/gobuffalo/nulls v0.4.2
go: downloading github.com/joho/godotenv v1.4.0
go: downloading github.com/docker/cli v20.10.21+incompatible
go: downloading github.com/opencontainers/runc v1.1.4
go: downloading github.com/containerd/continuity v0.3.0
go: downloading github.com/gobuffalo/plush/v4 v4.1.16
go: downloading github.com/gobuffalo/github_flavored_markdown v1.1.3
go: downloading github.com/gobuffalo/helpers v0.6.7
go: downloading github.com/microcosm-cc/bluemonday v1.0.21
go: downloading github.com/sergi/go-diff v1.2.0
go: downloading github.com/gobuffalo/tags/v3 v3.1.4
go: downloading github.com/aymerick/douceur v0.2.0
go: downloading github.com/gorilla/css v1.0.0
spec/embed.go:8:19: pattern all:pipeline: no matching files found
spec/embed.go:8:19: pattern all:pipeline: no matching files found


### Relevant configuration

_No response_

### Version

0.40.1

### On which operating system are you observing this issue?

macOS

### In which environment are you deploying?

None

### Additional Context

Probably not related to macos at all. Most likely a general issue.

Upgrading go to 1.19 fixes the problem.