Skip to content

Fix working tree diff not finding GitHub Actions workflows#58

Merged
andrew merged 3 commits intomainfrom
fix-working-tree-diff-actions
Jan 29, 2026
Merged

Fix working tree diff not finding GitHub Actions workflows#58
andrew merged 3 commits intomainfrom
fix-working-tree-diff-actions

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Jan 29, 2026

DependenciesInWorkingDir was using filepath.Base(path) which strips the directory, but manifests.Identify needs the full relative path to recognize files in .github/workflows/ as workflow files.

Fixes #53

DependenciesInWorkingDir was using filepath.Base(path) which strips
the directory, but manifests.Identify needs the full relative path
to recognize files in .github/workflows/ as workflow files.

Fixes #53
filepath.Rel returns backslashes on Windows, causing paths like
.github\workflows\ci.yml to not match database entries that use
forward slashes. Use filepath.ToSlash to normalize.
filepath.Join can reintroduce backslashes on Windows.
@andrew andrew merged commit c09e9f5 into main Jan 29, 2026
4 checks passed
@andrew andrew deleted the fix-working-tree-diff-actions branch January 30, 2026 14:48
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.

Should git pkgs diff output the packages diff of uncommitted changes

1 participant