PaloAltoNetworks / a3s

Auth As A Service
Apache License 2.0
8 stars 5 forks source link

Quickstart: Missing dependencies in go.mod/sum while build on MAC OS. #39

Closed sseeeff closed 2 years ago

sseeeff commented 2 years ago

Missing deps in make docker:

cd cmd/a3s && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -trimpath
../../../../../../pkg/mod/github.com/prometheus/client_golang@v1.7.1/prometheus/desc.go:22:2: missing go.sum entry for module providing package github.com/cespare/xxhash/v2 (imported by github.com/prometheus/client_golang/prometheus); to add:
    go get github.com/prometheus/client_golang/prometheus@v1.7.1
../../../../../../pkg/mod/github.com/prometheus/client_golang@v1.7.1/prometheus/desc.go:24:2: missing go.sum entry for module providing package github.com/golang/protobuf/proto (imported by github.com/prometheus/client_golang/prometheus); to add:
    go get github.com/prometheus/client_golang/prometheus@v1.7.1
../../../../../../pkg/mod/github.com/prometheus/client_golang@v1.7.1/prometheus/value.go:24:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes (imported by github.com/prometheus/client_golang/prometheus); to add:
    go get github.com/prometheus/client_golang/prometheus@v1.7.1
../../../../../../pkg/mod/github.com/prometheus/client_model@v0.2.0/go/metrics.pb.go:9:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/timestamp (imported by github.com/prometheus/client_model/go); to add:
    go get github.com/prometheus/client_model/go@v0.2.0
../../../../../../pkg/mod/github.com/coreos/go-oidc/v3@v3.1.0/oidc/oidc.go:19:2: missing go.sum entry for module providing package golang.org/x/oauth2 (imported by go.aporeto.io/a3s/internal/processors); to add:
    go get go.aporeto.io/a3s/internal/processors
make: *** [a3s_linux] Error 1

Missing deps in make cli:

sseeeff@sseeeff-mbp a3s (master) $ make cli
cd cmd/a3sctl && CGO_ENABLED=0 go install -ldflags="-w -s" -trimpath
../../pkgs/authlib/internal/providers/gcp.go:7:2: missing go.sum entry for module providing package cloud.google.com/go/compute/metadata (imported by go.aporeto.io/a3s/pkgs/authlib/internal/providers); to add:
    go get go.aporeto.io/a3s/pkgs/authlib/internal/providers
../../../../../../pkg/mod/github.com/hokaccha/go-prettyjson@v0.0.0-20210113012101-fb4e108d2519/prettyjson.go:12:2: missing go.sum entry for module providing package github.com/fatih/color (imported by github.com/hokaccha/go-prettyjson); to add:
    go get github.com/hokaccha/go-prettyjson@v0.0.0-20210113012101-fb4e108d2519
../../../../../../pkg/mod/github.com/olekukonko/tablewriter@v0.0.5/util.go:15:2: missing go.sum entry for module providing package github.com/mattn/go-runewidth (imported by github.com/olekukonko/tablewriter); to add:
    go get github.com/olekukonko/tablewriter@v0.0.5
make: *** [cli] Error 1
primalmotion commented 2 years ago

I can't reproduce. I just tried from a fresh clone in a fresh container, and it builds without issue. You should be able to fetch missing dependencies by running go mod tidy

sseeeff commented 2 years ago

withdrawn and closed.