Skip to content

Upload .gitkeep files/empty directories when publishing #4262

@vashworth

Description

@vashworth

Flutter is working to adopt Swift Package Manager, and has run into an issue where directories with only a .gitkeep are not downloaded to pub-cache.

For example, plugin video_player_avfoundation (version 2.6.0) has video_player_avfoundation-2.6.0/darwin/video_player_avfoundation/Sources/video_player_avfoundation_ios/include/.gitkeep. However, in .pub-cache, both the include directory and the .gitkeep file are not found. This is a problem for Swift Package Manager as it requires an include directory.

I would expect /path/to/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.6.0/darwin/video_player_avfoundation/Sources/video_player_avfoundation_ios/include/.gitkeep to exist

See flutter/flutter#148002

Metadata

Metadata

Assignees

Labels

type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions