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 handling of packages with unexpected files. #114

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

DanAlbert
Copy link
Member

Some file browsers helpfully create extra hidden files in any
directory they view. It may have been better to just ignore anything
without a module.json, but #106
made module.json optional, so technically any directory is a valid
module now and we need a new schema revision to change that behavior.
We could alternatively add an explicit module list to prefab.json, but
that would also require a new schema revision.

For now, just ignore all files (fixes the .DS_Store case) and any
hidden directories (just in case).

Some file browsers helpfully create extra hidden files in any
directory they view. It may have been better to just ignore anything
without a module.json, but google#106
made module.json optional, so technically any directory is a valid
module now and we need a new schema revision to change that behavior.
We could alternatively add an explicit module list to prefab.json, but
that would also require a new schema revision.

For now, just ignore all files (fixes the .DS_Store case) and any
hidden directories (just in case).
@DanAlbert DanAlbert merged commit 6b0eefb into google:master Sep 14, 2020
@DanAlbert DanAlbert deleted the skip-bogus-files branch September 14, 2020 23:42
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.

2 participants