Classic snap for D reference compiler DMD

Michael Hudson-Doyle michael.hudson at canonical.com
Sun Jan 29 20:37:29 UTC 2017


On 30 January 2017 at 07:48, Joseph Rushton Wakeling <
joseph.wakeling at webdrake.net> 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170130/d4fa2152/attachment.html>


More information about the Snapcraft mailing list