Git Product home page Git Product logo

Comments (6)

codyoss avatar codyoss commented on August 28, 2024

I just made a new project with this code which builds without issue:

package main

import (
	"context"

	"google.golang.org/api/androidpublisher/v3"
)

func main() {
	ctx := context.Background()
	androidpublisher.NewService(ctx)
}

If you are using up-to-date dependencies here it should not be an issue. Please share your go.mod and/or upgrade cloud.google.com/go to latest. The version mentioned in your comment is from 2018.

from google-api-go-client.

CoreFloDev avatar CoreFloDev commented on August 28, 2024

I don't get why it mention cloud.google.com/go

it is not required on the go.mod I have

go 1.22.2

require (
	github.com/99designs/gqlgen v0.17.45
	github.com/go-chi/chi/v5 v5.0.12
	github.com/go-webauthn/webauthn v0.10.2
	github.com/google/wire v0.6.0
	github.com/jackc/pgx/v5 v5.5.5
	github.com/nicksnyder/go-i18n/v2 v2.4.0
	github.com/vektah/gqlparser/v2 v2.5.11
	golang.org/x/net v0.24.0
	google.golang.org/api v0.176.1
)

require (
	cloud.google.com/go/auth v0.3.0 // indirect
	cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
	cloud.google.com/go/compute v1.25.1 // indirect
	cloud.google.com/go/compute/metadata v0.3.0 // indirect
	github.com/agnivade/levenshtein v1.1.1 // indirect
	github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
	github.com/felixge/httpsnoop v1.0.4 // indirect
	github.com/fxamacker/cbor/v2 v2.6.0 // indirect
	github.com/go-logr/logr v1.4.1 // indirect
	github.com/go-logr/stdr v1.2.2 // indirect
	github.com/go-webauthn/x v0.1.9 // indirect
	github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
	github.com/golang/protobuf v1.5.4 // indirect
	github.com/google/go-tpm v0.9.0 // indirect
	github.com/google/s2a-go v0.1.7 // indirect
	github.com/google/uuid v1.6.0 // indirect
	github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
	github.com/googleapis/gax-go/v2 v2.12.3 // indirect
	github.com/gorilla/websocket v1.5.0 // indirect
	github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
	github.com/jackc/pgpassfile v1.0.0 // indirect
	github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
	github.com/jackc/puddle/v2 v2.2.1 // indirect
	github.com/kr/text v0.2.0 // indirect
	github.com/mitchellh/mapstructure v1.5.0 // indirect
	github.com/rogpeppe/go-internal v1.11.0 // indirect
	github.com/russross/blackfriday/v2 v2.1.0 // indirect
	github.com/sosodev/duration v1.2.0 // indirect
	github.com/urfave/cli/v2 v2.27.1 // indirect
	github.com/x448/float16 v0.8.4 // indirect
	github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
	go.opencensus.io v0.24.0 // indirect
	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
	go.opentelemetry.io/otel v1.24.0 // indirect
	go.opentelemetry.io/otel/metric v1.24.0 // indirect
	go.opentelemetry.io/otel/trace v1.24.0 // indirect
	golang.org/x/crypto v0.22.0 // indirect
	golang.org/x/mod v0.16.0 // indirect
	golang.org/x/oauth2 v0.19.0 // indirect
	golang.org/x/sync v0.7.0 // indirect
	golang.org/x/sys v0.19.0 // indirect
	golang.org/x/text v0.14.0 // indirect
	golang.org/x/tools v0.19.0 // indirect
	google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect
	google.golang.org/grpc v1.63.2 // indirect
	google.golang.org/protobuf v1.33.0 // indirect
	gopkg.in/yaml.v3 v3.0.1 // indirect
)

from google-api-go-client.

codyoss avatar codyoss commented on August 28, 2024

Maybe try deleting your go.sum and run go mod tidy? Or try what I recommend above. If you can provide a minimum reproducer I may be able to help more but I copied your go.mod updated my code to:

import (
	"context"

	_ "github.com/99designs/gqlgen/handler"
	_ "github.com/go-chi/chi/v5"
	_ "github.com/go-webauthn/webauthn/webauthn"
	_ "github.com/google/wire"
	_ "github.com/jackc/pgx/v5"
	_ "github.com/nicksnyder/go-i18n/v2/i18n"
	_ "github.com/vektah/gqlparser/v2"
	_ "golang.org/x/net/http2"
	"google.golang.org/api/androidpublisher/v3"
)

func main() {
	ctx := context.Background()
	androidpublisher.NewService(ctx)
}

And ran go mod tidy && go build and everything still works fine

from google-api-go-client.

CoreFloDev avatar CoreFloDev commented on August 28, 2024

I was able to reproduce in a smaller repository https://github.com/CoreFloDev/errorAndroidPublisher

from google-api-go-client.

codyoss avatar codyoss commented on August 28, 2024

It is not super clear to me why this is happening yet, but an easy workaround is to add the following to your go.mod: exclude cloud.google.com/go v0.26.0 and run go mod tidy

from google-api-go-client.

CoreFloDev avatar CoreFloDev commented on August 28, 2024

Yes that works thanks!

from google-api-go-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.