Coder Social home page Coder Social logo

"no buildable Go source files" about godebug HOT 5 OPEN

mailgun avatar mailgun commented on June 23, 2024 1
"no buildable Go source files"

from godebug.

Comments (5)

jeremyschlatter avatar jeremyschlatter commented on June 23, 2024

The problem happens because, in the above example, a/b/c is instrumented but a/b is not. godebug should be fixed to make this work, but in the meantime you can also instrument the parent packages as a workaround:

a $ godebug run -instrument a/b/c,a/b a.go
B
-> _ = "breakpoint"
(godebug) c
C

from godebug.

FiloSottile avatar FiloSottile commented on June 23, 2024

Hit the same problem when trying to build (with the new UX) package github.com/FiloSottile/BERserk/BERserker which imports github.com/FiloSottile/BERserk.

from godebug.

TechnotronicOz avatar TechnotronicOz commented on June 23, 2024

I have been having this same issue. We have multiple Go apps and we have structured the mains like:

|--- ./appOne/
        |--- appOne.go
|--- ./appTwo/
        |--- appTwo.go

then the sub packages exist in:

|--- ./lib/
        |--- appOne/packageOne/
                |--- packageOne.go
        |--- appOne/packageTwo/
                |--- packageTwo.go
        |--- appTwo/packageOne/
                |--- packageOne.go

from godebug.

otoolep avatar otoolep commented on June 23, 2024

Same here, really struggling when trying to instrument packages with this otherwise great tool.

from godebug.

willfaught avatar willfaught commented on June 23, 2024

Have the same issue

from godebug.

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.