Re: limitation of anchor and alias?
Carsten Bormann <[email protected]> Tue, 23 Mar 2021 20:36:43 +0100
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
--===============2608902159920566153== Content-Type: multipart/alternative; boundary="Apple-Mail=_258D7591-7D8B-42D5-871D-44A052F0D7DD" --Apple-Mail=_258D7591-7D8B-42D5-871D-44A052F0D7DD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 23. Mar 2021, at 16:02, Tom Corcoran <[email protected]> wrote: >=20 > I have since learned that YAML is a dead language, not maintained for = over 10 years, which seem strange considering how much it's used these = days. It would be a dead language if it weren=E2=80=99t spoken. But as you notice, it is spoken a lot. > On Thu, 18 Mar 2021 at 21:50, Tom Corcoran <[email protected] = <mailto:[email protected]>> wrote: > I have an anchor as follows: >=20 > helm-install > docker-flags: &my_docker_flags > - "--network host" > - "--env KUBECONFIG=3D/tmp/admin.conf" > - "--env HOME=3D${env.HOME}" > - "--volume ${env.KUBECONFIG}:/tmp/admin.conf:ro" > - "--volume ${env.PWD}:${env.PWD}" > - "--volume ${env.HOME}/.helm:${env.HOME}/.helm" > - "--volume = ${var.docker_config_basepath}:${var.docker_config_basepath}" >=20 > later I want to do: >=20 > docker-flags: > <<: *d my_docker_flags=20 > - "--env K8_NAMESPACE=3D${env.K8_NAMESPACE}" >=20 > But, the last line is flagged as bad indentation of a mapping entry = YAML What are you trying to do? I can=E2=80=99t parse the above. Gr=C3=BC=C3=9Fe, Carsten --Apple-Mail=_258D7591-7D8B-42D5-871D-44A052F0D7DD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">On = 23. Mar 2021, at 16:02, Tom Corcoran <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>> = wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D"">I have since learned that YAML is a dead language, not = maintained for over 10 years, which seem strange considering how much = it's used these days.<br clear=3D"all" = class=3D""></div></div></blockquote><div><br class=3D""></div>It would = be a dead language if it weren=E2=80=99t spoken.</div><div>But as you = notice, it is spoken a lot.</div><div><br class=3D""><blockquote = type=3D"cite" class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D""></div></div><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Thu, 18 Mar 2021 at 21:50, Tom Corcoran <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>> = wrote:<br class=3D""></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr" class=3D""><div = class=3D"">I have an anchor as follows:</div><div class=3D""><br = class=3D""></div><div class=3D"">helm-install</div><div class=3D""> = docker-flags: &my_docker_flags<br class=3D""> = - "--network host"<br class=3D""> = - "--env KUBECONFIG=3D/tmp/admin.conf"<br class=3D""> = - "--env HOME=3D${env.HOME}"<br class=3D""> = - "--volume = ${env.KUBECONFIG}:/tmp/admin.conf:ro"<br class=3D""> = - "--volume ${env.PWD}:${env.PWD}"<br class=3D""> = - "--volume ${env.HOME}/.helm:${env.HOME}/.helm"</div><div = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""> = - "--volume = ${var.docker_config_basepath}:${var.docker_config_basepath}"</div><div = dir=3D"ltr" class=3D""><br class=3D""></div><div class=3D"">later I want = to do:</div><div class=3D""><br class=3D""></div><div class=3D""> = docker-flags:<br class=3D""> = <<: *d my_docker_flags <br class=3D""> - "--env = K8_NAMESPACE=3D${env.K8_NAMESPACE}"</div><div class=3D""><br = class=3D""></div><div class=3D"">But, the last line is flagged as bad = indentation of a mapping entry = YAML</div></div></div></div></blockquote></div></div></blockquote><br = class=3D""></div><div>What are you trying to do? I can=E2=80=99t parse = the above.</div><div><br class=3D""></div><div><div>Gr=C3=BC=C3=9Fe, = Carsten</div><div class=3D""><br class=3D""></div></div><br = class=3D""></body></html>= --Apple-Mail=_258D7591-7D8B-42D5-871D-44A052F0D7DD-- --===============2608902159920566153== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2608902159920566153== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Yaml-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/yaml-core --===============2608902159920566153==--