You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change fixes unexpected behavior when excluding directories with trailing
slash patterns in project.toml. Previously, patterns like "foo/" would exclude
files within the directory but still create empty directory entries in the
final image.
Changes:
- Enhanced getFileFilter() to properly exclude directories when patterns end with "/"
- Modified WriteDirToTar() to skip entire directory trees using filepath.SkipDir
- Fixed isNil() function in testhelpers to properly handle nil function pointers
- Added comprehensive tests for directory exclusion scenarios
The fix ensures that when users specify exclude = ["foo/"] in project.toml,
the directory "foo" and all its contents are completely excluded from the build
process, eliminating the unexpected empty directory artifacts.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments