Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chadmiller-saq opened this issue Nov 5, 2024 · 2 comments
Closed

Comments

@chadmiller-saq
Copy link

chadmiller-saq commented Nov 5, 2024

$ 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/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]
../go/pkg/mod/github.com/hatchet-dev/[email protected]/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/[email protected]

May be related to whatever is behind #1016.

@abelanger5
Copy link
Contributor

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

@chadmiller-saq
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants