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

fix: handle repositories with symlinks targeting absolute paths #5

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

joelanford
Copy link
Owner

@joelanford joelanford commented Mar 2, 2021

Signed-off-by: Joe Lanford joe.lanford@gmail.com

Workaround for go-git/go-git#253

When using go-apidiff against the Helm repository, I was getting an error that the worktree was dirty even though git status reported it to be clean. Turns out go-git doesn't correctly hash absolute symlinks due to the use of an abstracted filesystem and mangling of the symlink target.

This PR works around this issue by adding and using a modified billy.Filesystem implementation that does not mangle symlink targets.

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
@joelanford joelanford merged commit efa2d36 into master Mar 2, 2021
@joelanford joelanford deleted the fix/absolute-links branch March 2, 2021 14:46
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.

None yet

1 participant