Skip to content

extendsSelf concatenate with some string #214

Open

Description

@pats

Hi,

I was wondering, is below action possible right now?

What I'd like to achive is to use already defined value with some other values, i.e. concatenate with some string

myHost: 'localhost',
check: {
 http: 'http://${myHost}/is-alive'
}

is it possible?

PS

Activity

  1. joelgallant commented on Nov 29, 2022

    @joelgallant
    Contributor

    This would be a great feature. Unfortunately, it's somewhat of a circular problem, and hard to define the semantics correctly. You could see how a loop can be written easily:

    foo: '${bar}'
    bar: '${foo}'

    it requires lazy initialization, which isn't currently done today (at least, today's parsing is materializing BFS). values would need representations as thunks, and perform cycle detection, most likely.

    it would probably be better to find and support a YAML-like format that supports such a thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions