Repository navigation
Closed as not planned
Labels
Description
Non exhaustive list of requirements, in random order [...]
Question is: should we rewrite our own vendoring system or can we contribute upstream instead?
Originally posted by @aluzzardi in #2052 (comment)
Essential
These are focused on freeing us from embedding the built-in packages in the binary, and from needing to vendor packages in cue.mod/pkg (i.e., committing them to VCS).
- Make sure project update is handling built-ins and external dependencies #2413
- Improve parsing for git URLs when adding third party CUE modules #2631
- Fix updating a CUE module when installed with a branch #2672
- Fix
dagger.modanddagger.sumformats #2502 - Support replace directives like in Go #2504
- Treat
dagger.ioanduniverse.dagger.ioas external packages #2506 - Do not require vendoring packages in git (i.e., use a global cache) #2503
-
Proposal: Create acue.mod/dagger.cuefile #2431
Enhancements
Incremental improvements mostly from the upstream proposal, until we have an official package management solution.
- 🐞
dagger project updatevendors all universe #2496 - Support "tidy"'ing #2508
- Improve how repos from required modules are downloaded (i.e., make it more modular) #2511
- Support vanity URLs like in Go #2509
- Support MVS #2510
Upstream
Docs
Reacted by Guillaume Camus, Alvise, Victor, Adil Houmadi, Ali AKCA, Riccardo, Chandra (tckb) and Ricardo Trevizo
Activity
jlongtine commentedon Apr 13, 2022
I'd definitely vote for trying to contribute upstream, if we can.
helderco commentedon Apr 21, 2022
Ref #2186 (comment)
samalba commentedon Apr 21, 2022
@morlay shared his project on Discord: https://github.com/octohelm/cuemod - maybe we could use it to improve our package support?
@morlay is cuemod embeddable into other projects using CUE?
morlay commentedon Apr 21, 2022
@samalba Yes it is.
It could just use with
github.com/octohelm/cuemod/pkg/cuemod.ContextForhttps://github.com/octohelm/cuemod/blob/main/pkg/cuemod/context_test.go#L25But the spec is different from
dagger.modhttps://github.com/octohelm/cuemod#spec-cuemodmodulecueOne more thing, if the vendor pkg is a go project, it will be transform to cue from go structs.
(Not sure does
daggerneed it?)morlay commentedon Apr 21, 2022
In fact. the two tools could be split to use.
https://github.com/morlay/dagger-cuemod-example (cuem required v0.3.0)
once
dagger.io/*anduniverse.dagger.io/*supportgo-get, We could remove the replace.morlay commentedon Apr 21, 2022
@samalba
Here an exmaple to port domain to github for go get
curl "https://go.opentelemetry.io/otel/trace?go-get=1"Response:
So we just need the the html meta when we request
curl "https://dagger.io/dagger?go-get=1"universe.dagger.iois the be samemorlay commentedon Apr 24, 2022
@samalba
With some refactor. now just change oneline in
compiler/build.go(github.com/octohelm/[email protected])Before the "go-get" supported #2163 (comment)
the replace directive have to added.
aluzzardi commentedon Apr 25, 2022
That's super interesting @morlay, we should definitely look into it /cc @helderco
Do you think we could use
cue-get=1/cue-import/cue-sourceinstead ofgo-*? I believe that's how CUE is going to implement it cue-lang/cue#851 (https://acme.com/quote?cue-get=1from the spec) /cc @jlongtinejlongtine commentedon Apr 25, 2022
That is my understanding of how
cue modwill work, but I don't think any system will respect it yet, including GitHub.morlay commentedon Apr 26, 2022
@aluzzardi
i think we could support both
go-getandcue-get.just need put those meta in html.
query parameters could be ignored.
as @jlongtine said, no vcs support cue-get now. 😂
we could use the channel from go,
private vcs like gitlab already support
go-get.this will be easy to start.
10 remaining items
helderco commentedon May 24, 2022
I've converted the remaining list items into issues and created a few more.
mircubed commentedon Dec 21, 2022
@helderco to clean up for the new year, can you determine what needs to be kept for this large issue or maybe we can just close it?
[-]Improve Package Management[/-][+]Improve CUE Package Management[/+]helderco commentedon Dec 22, 2022
This should only be relevant if we support any version using CUE. However, with the focus on the GraphQL based SDKs, the CUE package manager is no longer a major onboarding issue when adopting Dagger.
Every other SDK uses their language's package manager. CUE is the exception because there isn't one yet, but there are some third party attempts for one and I don't think it's worth it for us to be another. The ideal situation has always been that the CUE project releases an official solution for its community.
The current CUE SDK v0.2 is frozen and I'm not sure when we'll release a new one, but let's reassess the upstream situation then. In the meantime, you can still try some other tool, vendor manually or use the current implementation to the extent that it works for you.
I'm going to close some of the issues in this epic but since there's still quite a few CUE related issues that are open I'm going to also leave open some of the more essential fixes and hand this over to @jlongtine to decide what to do with what's left.
shykes commentedon Dec 22, 2022
Agreed completely.
TomChv commentedon Oct 31, 2023
I'm closing this issue since we no longer support the cue SDK