mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #330] [MERGED] Do not package empty directories #505
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/330
Author: @StefMa
Created: 3/17/2024
Status: ✅ Merged
Merged: 3/19/2024
Merged by: @bioball
Base:
main← Head:package-empty-dirs📝 Commits (2)
a0ee462Do not package empty directoriesaea985dRemove unused method📊 Changes
2 files changed (+22 additions, -30 deletions)
View changed files
📝
pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectPackagerTest.kt(+17 -13)📝
pkl-core/src/main/java/org/pkl/core/project/ProjectPackager.java(+5 -17)📄 Description
fixes #318
The solution is simply:
We only collect "RegularFiles".
In this case we filter out directories of that returning
List.Since the regular files already includes the path (obviously), the packaging still works as expected 🚀
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.