Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add versions to plugins in manifest #2399

@peschee

Description

@peschee

Is your feature request related to a problem? Please describe.

We have a custom docker image for our Gauge tests run in our CI environment. In that docker image, we're installing "pinned" versions of the plugins to ensure our builds are reproducible:

npx gauge install html-report --version 4.2.0

In development thought, Gauge plugins are being installed from the manifest.json:

{
  "Language": "js",
  "Plugins": ["html-report"]
}

Currently, there's no way to specify a version in the manifest. I would appreciate it if one could ensure everybody is getting the same versions of the plugins when installing and running gauge locally and installing the plugins based on a manifest.

Describe the solution you'd like

The manifest schema / format could be extended to support this, e.g.:

{
  "Language": "js",
  "Plugins": ["[email protected]"]
}

Describe alternatives you've considered

We could manually run the gauge install commands for the plugins in a postinstall script in NPM. This would render the Plugins portion of the manifest obsolete.

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