8000 [ENHANCEMENT] rework `percli plugin build` to vendor CUE dependencies by AntoineThebaud · Pull Request #2695 · perses/perses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENHANCEMENT] rework percli plugin build to vendor CUE dependencies #2695

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

Conversation

AntoineThebaud
Copy link
Contributor
@AntoineThebaud AntoineThebaud commented Mar 1, 2025

Description

Add a step of dependencies vendoring to the percli plugin build command.

Why: Following the move to CUE native dependency management, the deps of the plugin are no longer vendored under cue.mod/pkg. Letting things in this state would imply that, at runtime, the Perses server should have access to an OCI registry - thus either access to internet OR to a custom registry set up by users in their private network - to be able to evaluate a plugin
schema that imports packages - like the common package of Perses.
As we consider this constraint a no-go in our case, We looked for solutions to that problem... After asking to CUE
maintainers it seems our long term solution would be this native vendor command, yet to be implemented. cue-lang/cue#3328.
Thus for the time being we have to reproduce the vendoring structure of the "old-modules" with custom code.

Ref #1984

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

@AntoineThebaud AntoineThebaud changed the base branch from main to feature/remove-plugin-schemas March 1, 2025 07:22
@AntoineThebaud AntoineThebaud changed the title Antoinethebaud/percli plugin build v2 [ENHANCEMENT] rework percli plugin build to vendor CUE dependencies Mar 1, 2025
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/percli-plugin-build-v2 branch from 8c7fa91 to db4fe57 Compare March 1, 2025 07:22
@AntoineThebaud AntoineThebaud changed the title [ENHANCEMENT] rework percli plugin build to vendor CUE dependencies [ENHANCEMENT] rework percli plugin build to vendor CUE dependencies Mar 1, 2025
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/percli-plugin-build-v2 branch 2 times, most recently from f1f54c8 to 09f0e9b Compare March 1, 2025 08:28
@AntoineThebaud AntoineThebaud marked this pull request as ready for review March 1, 2025 08:47
@AntoineThebaud AntoineThebaud requested a review from Nexucis March 1, 2025 08:47
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/percli-plugin-build-v2 branch 2 times, most recently from d28357a to 9ccc712 Compare March 4, 2025 15:35
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/percli-plugin-build-v2 branch 2 times, most recently from 303b92d to 40f9e5b Compare March 5, 2025 14:46
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/percli-plugin-build-v2 branch from 7b751d2 to ea6504b Compare March 5, 2025 18:09
Copy link
Member
@Nexucis Nexucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pure gold ! Well done @AntoineThebaud !

Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
@AntoineThebaud AntoineThebaud merged commit e492488 into feature/remove-plugin-schemas Mar 5, 2025
19 checks passed
@AntoineThebaud AntoineThebaud deleted the antoinethebaud/percli-plugin-build-v2 branch March 5, 2025 18:45
Nexucis added a commit that referenced this pull request Mar 5, 2025
* [BREAKINGCHANGE] CUE: rely on native dep management (#2645)

* [BREAKINGCHANGE] Remove `percli plugin update` command (#2660)

Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>

* [ignore] use function LoadModelSchema in the discovery tests (#2661)

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>

* [IGNORE] change back module name to the right name (#2667)

Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>

* [ENHANCEMENT] rework `percli plugin build` to vendor CUE dependencies (#2695)

* [ENHANCEMENT] rework `percli plugin build` to vendor CUE dependencies

Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>

---------

Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
Co-authored-by: Augustin Husson <husson.augustin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0