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

cmd/cue: provide a mechanism to download and cache all dependencies without updating cue.mod #3512

Open
jpluscplusm opened this issue Oct 15, 2024 · 0 comments
Labels
FeatureRequest New feature or request modules Issues related to CUE modules and the experimental implementation

Comments

@jpluscplusm
Copy link
Collaborator

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

I have a CI pipeline containing several steps that use cue.
My CUE module uses modules from a registry.

I would like to invoke a command near the start of the pipeline that fetches all my module's dependencies and leaves them in the module cache (so that only this one command needs to have access to auth tokens for the registry).
I would also like this command not to potentially update anything inside cue.mod.

Describe the solution you'd like

As per @mvdan's suggestion in Slack, I would like something akin to go mod download to exist.

Describe alternatives you've considered

  • cue mod tidy && git check-that-cue.mod-has-not-been-updated
  • cue mod tidy --check (but is this guaranteed to fetch every transitive dependency's full module contents?)

Additional context

n/a

@jpluscplusm jpluscplusm added FeatureRequest New feature or request modules Issues related to CUE modules and the experimental implementation labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest New feature or request modules Issues related to CUE modules and the experimental implementation
Projects
Status: Backlog
Development

No branches or pull requests

1 participant