Git Product home page Git Product logo

Comments (8)

rakyll avatar rakyll commented on May 3, 2024

Is it possible for you to see if https://godoc.org/rsc.io/goversion is working with your binary?

from gops.

prithsharma avatar prithsharma commented on May 3, 2024

Right, goversion doesn't list my binary either. I can confirm that some other binaries lying in my directory from before are being listed with goversion but the binary in question (which I recently generated) is not. May be something changed on my system? what should I check?

from gops.

tklauser avatar tklauser commented on May 3, 2024

@prithsharma could you check whether you still see the issue with the latest gops version? If you do, could you check with which Go version your binary was compiled using both goversion <binary> (using the latest version of goversion) and go version <binary>?

from gops.

lblackstone avatar lblackstone commented on May 3, 2024

I ran into this same issue today. Here's the output from both go version and goversion:

$ go version ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes: go1.15.7

$ goversion ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes: implausible string size 13678730008574592512 for runtime.buildVersion

This is with gops v0.3.14 and goversion v1.2

I also grabbed the runtime.buildVersion using dlv like this post shows:

dlv exec ~/go/bin/pulumi-resource-kubernetes
Type 'help' for list of commands.
(dlv) b main.main
Breakpoint 1 set at 0x588b6cf for main.main() /Users/levi/go/src/github.com/pulumi/pulumi-kubernetes/provider/cmd/pulumi-resource-kubernetes/main.go:26
(dlv) p runtime.buildVersion
"go1.15.7"

from gops.

lblackstone avatar lblackstone commented on May 3, 2024

This open issue with goversion looks like the culprit: rsc/goversion#12

rsc/goversion#13 fixes the issue:

$ goversion ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes go1.15.7

from gops.

tklauser avatar tklauser commented on May 3, 2024

I think #166 should fix this issues, at least when building gops using Go 1.18.

@prithsharma @lblackstone could you please check whether gops built from latest master branch using Go 1.18 works as expected for you?

from gops.

lblackstone avatar lblackstone commented on May 3, 2024

@lblackstone could you please check whether gops built from latest master branch using Go 1.18 works as expected for you?

Yes, this appears to be working as expected now. Thanks!

from gops.

tklauser avatar tklauser commented on May 3, 2024

@lblackstone Thanks for confirming!

from gops.

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.