Commit dbfae14
committed
bundle: DRYer root.path entry
Instead of repeating the config.md conditions, just make the linkage
more clear. Now the chain is:
1. Bundles REQUIRE a config.json which is a bundle artifact.
2. If that config.json has a root.path entry (as specified in
config.md), then add the referenced directory to the set of bundle
artifacts. The config.md requirements include "If defined, a
directory MUST exist at the path declared by the field".
3. Apply the "MUST all be present in a single directory" condition to
all bundle artifacts. I don't like that direct-child restriction
[1], but I'm not touching it in this commit.
So these are the same requirements as before this commit, but with
less redundancy and fewer words.
[1]: opencontainers#469
Signed-off-by: W. Trevor King <[email protected]>1 parent 69380b0 commit dbfae14
1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 17 | + | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
| |||
0 commit comments