Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add versions to plugins in manifest #2399

Open
peschee opened this issue Aug 25, 2023 · 0 comments
Open

Add versions to plugins in manifest #2399

peschee opened this issue Aug 25, 2023 · 0 comments

Comments

@peschee
Copy link
Contributor

peschee commented Aug 25, 2023

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.

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

No branches or pull requests

1 participant