Skip to content

Conversation

tsukinoko-kun
Copy link

The imported path, in your case github.com/camdencheek/tree-sitter-dockerfile/bindings/go must match the module path. In Go the module root must be the Git root. This means that the go.mod needs to be in the root of your repository.

If I am missing something here, let me know. I am happy to learn.

go: finding module for package github.com/camdencheek/tree-sitter-dockerfile/bindings/go
go: found github.com/camdencheek/tree-sitter-dockerfile/bindings/go in github.com/camdencheek/tree-sitter-dockerfile/bindings/go v0.0.0-20250112161725-971acdd90856
go: viewre/internal/web/view imports
        github.com/camdencheek/tree-sitter-dockerfile/bindings/go: github.com/camdencheek/tree-sitter-dockerfile/bindings/[email protected]: parsing go.mod:
        module declares its path as: github.com/camdencheek/tree-sitter-dockerfile
                but was required as: github.com/camdencheek/tree-sitter-dockerfile/bindings/go

otherwise it can't be imported as a 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

Successfully merging this pull request may close these issues.

1 participant