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

Swap diff tool for git #492

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

fzakaria
Copy link
Contributor

@fzakaria fzakaria commented Mar 5, 2025

go-gitdiff which aspect CLI uses cannot support patches generated by BSD diff which is the default on MacOS (see tagged issue).

I am investigating using ape but it requires Bazel 7.4.1 which may be a breaking change.

Alternatively, this changes diff -> git with a few extra "hacks". Namely, we need to replace the labels to be the same file and resolve the symlinks otherwise git diff thinks the file was deleted.

fixes #487

go-gitdiff which aspect CLI uses cannot support patches generated by
BSD diff which is the default on MacOS (see tagged issue).

I am investigating using ape but it requires Bazel 7.4.1 which may be
a breaking change.

Alternatively, this changes diff -> git with a few extra "hacks".
Namely, we need to replace the labels to be the same file and resolve
the symlinks otherwise `git diff` thinks the file was deleted.

fixes aspect-build#487
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.

[Bug]: Files without newline seem to fail at applying patch
1 participant