Skip to content

revisit environmentVar definitions #249

Closed

Description

@jkowalleck

as agreed in a meeting with @mrutkows , @stevespringett , @jkowalleck
we will keep things as proposed via #222 for a while and revisit and restructure things in a breaking changes release.

see all of these:

yet another problem: @mrutkows mentioned that the envVars are allowed to be "string", instead of key-value(KV) pairs, for the purpose to document a POSIX variable set.
This 'POSIX variable set' is not only undocumented, but in fact contra productive. have it documented and give it a format(regex), so parsers/validators know how to read it!
In the end a 'POSIX variable set' is claimed to be just a certain notation of KV.
Better: remove the string option entirely, use properly defined KV only.

currently valid:

{
// [...]
  "environmentVars": [
    {
      // no issues here
      "name": "foo",
      "value": "bar"
    },
    {
      // issue: empty name/value
      "name": "",
      "value": ""
    },
    {
      // issue: no name
      "value": "foobar"
    },
    {
      //issue:  no value
      "name": "foobar"
    },
    {
      // issue: empty object
    },
    // issue: `string` does not have a defined format. who knows how to create it, who knows how to use or parse it.
    "bazz", // some arbitrary strig
    "$HOME=/home/user1", // posix like
    "$Env:Foo = 'An example'", //  powershell notation
    "", // empty string
    // [...]
  ],
// [...]
}

Activity

  1. added this to the 2.0 milestone on Jun 16, 2023
  2. added
    CDX 1.5
    on Oct 15, 2023
  3. self-assigned this
    on Sep 8, 2026
  4. removed
    CDX 1.5
    on Sep 8, 2026
  5. jkowalleck commented on Sep 8, 2026

    @jkowalleck
    MemberAuthor

    will work on this

  6. added
    cap: formulation
    on Sep 8, 2026
  7. added
    RFC notice sent
    on Sep 8, 2026
  8. jkowalleck commented on Nov 12, 2026

    @jkowalleck
    MemberAuthor

    closed per #1088

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

Metadata

Metadata

Assignees

Labels

RFC notice sentbreaking-changescap: formulationrequest for comment

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions