hatchet-dev / hatchet

A distributed, fault-tolerant task queue
https://hatchet.run
MIT License
4.31k stars 162 forks source link

for go sdk, "missing go.sum entrey for module providing package" #1021

Closed chadmiller-saq closed 3 weeks ago

chadmiller-saq commented 4 weeks ago
$ cat >main.go <<EOF
package main

import "github.com/hatchet-dev/hatchet/pkg/client"

func main() {

}
EOF

$ go mod init example
go: creating new go.mod: module example

$ go get github.com/hatchet-dev/hatchet; go run main.go
go: to add module requirements and sums:
    go mod tidy
go: added github.com/hatchet-dev/hatchet v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/client.go:10:2: missing go.sum entry for module providing package github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/retry (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows_grpc.pb.go:11:2: missing go.sum entry for module providing package google.golang.org/grpc (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows_grpc.pb.go:12:2: missing go.sum entry for module providing package google.golang.org/grpc/codes (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows_grpc.pb.go:13:2: missing go.sum entry for module providing package google.golang.org/grpc/status (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows.pb.go:10:2: missing go.sum entry for module providing package google.golang.org/protobuf/reflect/protoreflect (imported by github.com/hatchet-dev/hatchet/internal/services/admin/contracts); to add:
    go get github.com/hatchet-dev/hatchet/internal/services/admin/contracts@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows.pb.go:11:2: missing go.sum entry for module providing package google.golang.org/protobuf/runtime/protoimpl (imported by github.com/hatchet-dev/hatchet/internal/services/admin/contracts); to add:
    go get github.com/hatchet-dev/hatchet/internal/services/admin/contracts@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/services/admin/contracts/workflows.pb.go:12:2: missing go.sum entry for module providing package google.golang.org/protobuf/types/known/timestamppb (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/config/client/client.go:6:2: missing go.sum entry for module providing package github.com/spf13/viper (imported by github.com/hatchet-dev/hatchet/pkg/config/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/config/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/config/loader/loaderutils/viper.go:7:2: missing go.sum entry for module providing package github.com/creasty/defaults (imported by github.com/hatchet-dev/hatchet/pkg/config/loader/loaderutils); to add:
    go get github.com/hatchet-dev/hatchet/pkg/config/loader/loaderutils@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/rest/gen.go:17:2: missing go.sum entry for module providing package github.com/oapi-codegen/runtime (imported by github.com/hatchet-dev/hatchet/pkg/client/rest); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client/rest@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/rest/gen.go:18:2: missing go.sum entry for module providing package github.com/oapi-codegen/runtime/types (imported by github.com/hatchet-dev/hatchet/pkg/client/rest); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client/rest@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/types/file.go:9:2: missing go.sum entry for module providing package gopkg.in/yaml.v3 (imported by github.com/hatchet-dev/hatchet/pkg/client/types); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client/types@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/logger/stderr.go:7:2: missing go.sum entry for module providing package github.com/rs/zerolog (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/validator/validator.go:9:2: missing go.sum entry for module providing package github.com/Masterminds/semver/v3 (imported by github.com/hatchet-dev/hatchet/pkg/validator); to add:
    go get github.com/hatchet-dev/hatchet/pkg/validator@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/validator/default.go:7:2: missing go.sum entry for module providing package github.com/go-playground/validator/v10 (imported by github.com/hatchet-dev/hatchet/pkg/validator); to add:
    go get github.com/hatchet-dev/hatchet/pkg/validator@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/validator/validator.go:11:2: missing go.sum entry for module providing package github.com/google/uuid (imported by github.com/hatchet-dev/hatchet/pkg/validator); to add:
    go get github.com/hatchet-dev/hatchet/pkg/validator@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/validator/default.go:8:2: missing go.sum entry for module providing package github.com/hashicorp/go-multierror (imported by github.com/hatchet-dev/hatchet/pkg/validator); to add:
    go get github.com/hatchet-dev/hatchet/pkg/validator@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/api/v1/server/oas/gen/openapi.gen.go:18:2: missing go.sum entry for module providing package github.com/getkin/kin-openapi/openapi3 (imported by github.com/hatchet-dev/hatchet/api/v1/server/oas/gen); to add:
    go get github.com/hatchet-dev/hatchet/api/v1/server/oas/gen@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/api/v1/server/oas/gen/openapi.gen.go:19:2: missing go.sum entry for module providing package github.com/labstack/echo/v4 (imported by github.com/hatchet-dev/hatchet/api/v1/server/oas/gen); to add:
    go get github.com/hatchet-dev/hatchet/api/v1/server/oas/gen@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/cel/cel.go:7:2: missing go.sum entry for module providing package github.com/google/cel-go/cel (imported by github.com/hatchet-dev/hatchet/internal/cel); to add:
    go get github.com/hatchet-dev/hatchet/internal/cel@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/cel/cel.go:8:2: missing go.sum entry for module providing package github.com/google/cel-go/checker/decls (imported by github.com/hatchet-dev/hatchet/internal/cel); to add:
    go get github.com/hatchet-dev/hatchet/internal/cel@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/cel/cel.go:9:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types (imported by github.com/hatchet-dev/hatchet/internal/cel); to add:
    go get github.com/hatchet-dev/hatchet/internal/cel@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/cel/cel.go:10:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types/ref (imported by github.com/hatchet-dev/hatchet/internal/cel); to add:
    go get github.com/hatchet-dev/hatchet/internal/cel@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/repository/prisma/dbsqlc/batch.go:12:2: missing go.sum entry for module providing package github.com/jackc/pgx/v5 (imported by github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc); to add:
    go get github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/repository/prisma/dbsqlc/db.go:11:2: missing go.sum entry for module providing package github.com/jackc/pgx/v5/pgconn (imported by github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc); to add:
    go get github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/repository/prisma/dbsqlc/api_tokens.sql.go:11:2: missing go.sum entry for module providing package github.com/jackc/pgx/v5/pgtype (imported by github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc); to add:
    go get github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/internal/cel/cel.go:14:2: missing go.sum entry for module providing package google.golang.org/genproto/googleapis/api/expr/v1alpha1 (imported by github.com/hatchet-dev/hatchet/internal/cel); to add:
    go get github.com/hatchet-dev/hatchet/internal/cel@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/listener.go:13:2: missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/client.go:14:2: missing go.sum entry for module providing package google.golang.org/grpc/credentials (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/client.go:15:2: missing go.sum entry for module providing package google.golang.org/grpc/credentials/insecure (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0
../go/pkg/mod/github.com/hatchet-dev/hatchet@v0.51.0/pkg/client/context.go:4:2: missing go.sum entry for module providing package google.golang.org/grpc/metadata (imported by github.com/hatchet-dev/hatchet/pkg/client); to add:
    go get github.com/hatchet-dev/hatchet/pkg/client@v0.51.0

May be related to whatever is behind #1016.

abelanger5 commented 4 weeks ago

@chadmiller-saq what happens when you run go mod tidy and then go run main.go?

chadmiller-saq commented 4 weeks ago

It does indeed work then.

$ go mod tidy
go: downloading github.com/go-playground/assert/v2 v2.2.0
go: downloading github.com/ugorji/go/codec v1.2.11

I guess this is okay.