Skip to content

Conversation

@DanAlbert
Copy link
Member

Part of #97.

I don't think this requires a schema bump, since we previously
unconditionally tried to parse the module.json regardless of whether
or not it was present, which means non-module directories would have
been an error.

Part of google#97.

I don't think this requires a schema bump, since we previously
unconditionally tried to parse the module.json regardless of whether
or not it was present, which means non-module directories would have
been an error.
@DanAlbert DanAlbert merged commit 5f943a3 into google:master Jun 2, 2020
@DanAlbert DanAlbert deleted the optional-module.json branch August 21, 2020 21:03
DanAlbert added a commit to DanAlbert/prefab that referenced this pull request Aug 21, 2020
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 added a commit that referenced this pull request Sep 14, 2020
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).
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