On 30 January 2017 at 07:48, Joseph Rushton Wakeling <
[email protected]> wrote:

> Hello all,
>

[...]


> Second: the `source-tag:` settings for the 3 parts should all match.  Is
> there any way of defining a common value that they can all use (to make
> sure that in future there is less risk of accidentally failing to update
> one of them)?
>

You can do this just using yaml features:

mwhudson@aeglos:~/tmp$ cat foo.yaml
parts:
 part-a:
  source-tag: &the-tag v1.7
 part-b:
  source-tag: *the-tag
 part-c:
  source-tag: *the-tag
mwhudson@aeglos:~/tmp$ python3 -c 'import
yaml;print(yaml.dump(yaml.load(open("foo.yaml"))))'
parts:
  part-a: {source-tag: v1.7}
  part-b: {source-tag: v1.7}
  part-c: {source-tag: v1.7}

Cheers,
mwh
-- 
Snapcraft mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to