Skip to content

Conversation

@debkanchan
Copy link

Fixes go bindings and migrates to official tree sitter go

earliest if user imported github.com/camdencheek/tree-sitter-dockerfile/bindings/go and ran go mod tidy it would throw the following:

$ go mod tidy
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: github.com/debkanchan/bark/internal/parser/languages 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

This is because go.mod was inside bindings instead of root. See tree-sitter-kotlin for reference.

Furthermore binding_test.go imported tree_sitter_dockerfile "github.com/camdencheek/tree-sitter-dockerfile" instead of tree_sitter_dockerfile "github.com/camdencheek/tree-sitter-dockerfile/bindings/go".

updated to official tree sitter go package because why not

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