Skip to content

Pass parent options to a feature it dependsOn #1264

Closed
@j2udev

Description

@j2udev

Is there a way to pass options from a wrapping feature to a feature it depends on? For example:

{
  "name": "Go IDE",
  "id": "go-ide",
  "version": "0.1.0",
  "description": "Install a Go IDE",
  "options": {
    "go_version": {
        "type": "string",
        "proposals": [
          "1.23.6"
        ],
        "default": "1.23.6",
        "description": "Select a Go version"
    }
  }
  "customizations": {
    "vscode": {
      "settings": {},
      "extensions": ["golang.go"]
    }
  },
  "dependsOn": {
    "path/to/registry/features/go:0": {
      "version": "<can I reference the `go_version` option from above?>"
    }
  }
}

Metadata

Metadata

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