Skip to content

[REQ] Support CUE module dependencies as a source generator (cuemod) #1047

Description

@bchuo

What kind of request is this?

New feature

What is your request or suggestion?

When building projects that use CUE for schema validation (e.g., Perses plugins), cue mod tidy runs during the build and needs network access to fetch modules from registry.cue.works — the CUE module registry.

dalec currently provides source generators for Go modules (gomod) and Node.js modules (nodemod) that pre-fetch dependencies before the build step, allowing builds to run without network access. There is no equivalent for CUE modules.

This forces specs to use network_mode: sandbox as a workaround, which weakens build isolation and may require policy exceptions.

Are you willing to submit PRs to contribute to this feature request?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions