balena-io / contracts

Balena.io Base Contracts
Apache License 2.0
16 stars 28 forks source link

New partial combination #2

Open nghiant2710 opened 6 years ago

nghiant2710 commented 6 years ago

Can we do something like:

sw.os+arch.sw/<os>@<version>+<arch>|<arch1>/download.tpl (Apply for combinations: os@version+arch and os@version+arch1)
sw.os+arch.sw/<os>@<version>+<arch>@<version>|<arch1>/download.tpl (Apply for combinations: os@version+arch@version and os@version+arch1)
sw.os+arch.sw/<os>@<version>+<arch>@<version>|<arch1>@<version1>/download.tpl (Apply for combinations: os@version+arch@version and os@version+arch1@version1)

That would be great if we can specify multiple arch since I only put 2 archs in this example.

jviotti commented 6 years ago

So the idea is to match a partial like download.tpl to more than one arch, right?

nghiant2710 commented 6 years ago

@jviotti yeah, since we have many devices share the same template and they should share a template file instead of having a directory for each one.