-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add tree-sitter structural diff for code files #1982
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
base: sammorrowdrums/compare-file-contents
Are you sure you want to change the base?
Changes from all commits
d608c4b
317c44c
4b0cd4c
d8ed060
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,8 @@ require ( | |||||||||||
| github.com/stretchr/testify v1.11.1 | ||||||||||||
| ) | ||||||||||||
|
|
||||||||||||
| require github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 | ||||||||||||
|
|
||||||||||||
|
Comment on lines
14
to
+17
|
||||||||||||
| ) | |
| require github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 | |
| github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 | |
| ) |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new third-party dependency is introduced here. This repo’s CI includes script/licenses-check, which regenerates and diffs third-party-licenses.*.md and third-party/; without committing the regenerated outputs, the license-check workflow will fail. Please run ./script/licenses and commit any updated license artifacts alongside the dependency change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR enables CGO in release builds and removes Windows from GoReleaser targets, but the repo CI still runs
script/testandgo buildon windows-latest. Since go-tree-sitter requires CGO (and Windows runners typically lack a GCC/Clang toolchain by default), the Windows CI job will likely fail. Consider either (1) adding build tags + a !cgo stub that falls back to unified diffs, so non-CGO builds still compile, or (2) updating CI to drop Windows or install a working CGO toolchain there.