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

Require users to be responsible for Vega and other dependencies #47

Closed
Tracked by #1090
0x2b3bfa0 opened this issue Sep 7, 2021 · 6 comments
Closed
Tracked by #1090
Assignees

Comments

@0x2b3bfa0
Copy link
Member

Context

Code

`${sudoPath} npm install -g canvas@2 vega@5 vega-cli@5 vega-lite@4 @dvcorg/cml${

Proposals

@DavidGOrtega suggested in #8 that “Vega should be installed as a separate action”

@DavidGOrtega
Copy link
Contributor

No, we finally decided to not do that since many workflows were broken.

@0x2b3bfa0
Copy link
Member Author

Alright, then should we keep them here or add them as optional dependencies on CML's package.json and install them only on GitHub Actions?

@casperdcl
Copy link
Contributor

casperdcl commented Sep 24, 2021

👍 optional deps + Docker using said optional deps directly (rather than hardcoding into the Dockerfile).

@0x2b3bfa0 0x2b3bfa0 changed the title Vega and dependencies are being installed separately Require users to be responsible for Vega and other dependencies Jul 12, 2022
@0x2b3bfa0
Copy link
Member Author

Given that the official Vega-Lite documentation recommends using npx directly,1 managing the installation of dependencies behind the back of users is a bit of a footcannon.

Explicit is better than implicitPEP 20

Footnotes

  1. A bit fallacious; standalone usage would be rather lengthy: npx --yes --package canvas --package vega-lite {command} where {command} is vl2png or similar.

@dacbd
Copy link
Contributor

dacbd commented Oct 5, 2022

if we want to ditch this from the action I'd say...

Step 0:

  • create a public timeline for following

Step 1:

  • create a flag to additionally install vega-cli tools, default true
  • use action's mechanism to warn users

Step 2:

  • change the default for the flag to false

Optional step 3:

  • remove from the codebase and create simpler bash/composite action to npx or npm -g install vega cli tools

@dacbd
Copy link
Contributor

dacbd commented Sep 28, 2023

setup-cml@v2 implements step-1 of the above, going to close this issue and force step-2 if the npm install starts to fail for users.

@dacbd dacbd closed this as completed Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants