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

Overloard imports runtime on godocs #28

Open
Julian-Mentasti opened this issue Dec 8, 2020 · 0 comments
Open

Overloard imports runtime on godocs #28

Julian-Mentasti opened this issue Dec 8, 2020 · 0 comments

Comments

@Julian-Mentasti
Copy link

Some libraries use the Godoc documentation library where they have a doc.go file where they only declare the package name and have a comment block with documentation.

When you run overload in instrument mode and you "instr" block in your json config has the following:

    "instr" : {
        "dir" : "/home/julian/go/src/github.com/gorilla/websocket/",
        "blocks_file" : "../examples/websocket/blocks"
    },

It will instrument all .go files meaning it will also try to instrument the documentation files. This means that its importing runtime but never using it in some files thus the go compiler will prevent it from being compiled due to the unused library.

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

1 participant