Skip to content

feat: bump cuemod - #2292

Closed
morlay wants to merge 1 commit into
dagger:mainfrom
morlay:cuemod
Closed

morlay wants to merge 1 commit into
dagger:mainfrom
morlay:cuemod

Conversation

@morlay

@morlay morlay commented Apr 24, 2022

Copy link
Copy Markdown
Contributor

spike for #2163

Now will automate to fetch dependencies if not exists, like go did.

@morlay
morlay force-pushed the cuemod branch 2 times, most recently from d13355f to c7d48cb Compare April 24, 2022 16:36
@TomChv TomChv added the area/cli All about go code on dagger CLI label Apr 25, 2022
@aluzzardi

Copy link
Copy Markdown
Contributor

Thanks @morlay!

dagger is currently broken with the latest version of CUE -- @jlongtine is looking into that, but for now we're stuck with an older version

@helderco

Copy link
Copy Markdown
Contributor

dagger is currently broken with the latest version of CUE -- @jlongtine is looking into that, but for now we're stuck with an older version

This PR isn't about upgrading CUE, it's for using @morlay's cuemod tool for managing package dependencies. So this has to do with:

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@morlay
morlay force-pushed the cuemod branch 6 times, most recently from de78364 to 00fea7d Compare June 7, 2022 10:03
@TomChv

TomChv commented Jun 7, 2022

Copy link
Copy Markdown
Member

@morlay What should we do with the PR? Do you plan to continue it or should we close it?

@morlay
morlay force-pushed the cuemod branch 2 times, most recently from 7ebbab1 to fee09c4 Compare June 8, 2022 02:26
@morlay
morlay marked this pull request as ready for review June 8, 2022 02:29
@morlay
morlay requested review from a team, aluzzardi, samalba and shykes as code owners June 8, 2022 02:29
@morlay

morlay commented Jun 8, 2022

Copy link
Copy Markdown
Contributor Author

added dagger get, totally same as go get

# download dep
$ dagger get ./...

# upgrade to latest
$ dagger get -u ./...

@morlay

morlay commented Jun 8, 2022 •

Copy link
Copy Markdown
Contributor Author

go 1.18 required because internal code of go std is from go 1.18

working binaries could be found https://github.com/morlay/dagger/releases/tag/latest

@morlay

morlay commented Jun 8, 2022

Copy link
Copy Markdown
Contributor Author

@TomChv Not sure.

My tool cuemod already support most features list here #2163
If dagger team decide to implement by your self, could just close this PR directly.

@morlay
morlay force-pushed the cuemod branch 3 times, most recently from 4e5a16e to fe3dd8e Compare June 8, 2022 07:53
@TomChv

TomChv commented Jun 8, 2022

Copy link
Copy Markdown
Member

My tool cuemod already support most features list here #2163
If dagger team decide to implement by your self, could just close this PR directly.

Thanks for your reactivity! I think it's up to @helderco @aluzzardi @jlongtine to take this decision :D

@morlay
morlay force-pushed the cuemod branch 2 times, most recently from 91e528d to 9f3e2a2 Compare June 10, 2022 01:39
@samalba

samalba commented Jun 10, 2022

Copy link
Copy Markdown
Contributor

@helderco Assigning to you for review, to either close or approve.

@morlay
morlay force-pushed the cuemod branch 2 times, most recently from f382ff8 to f07e1df Compare June 11, 2022 06:21
@morlay

morlay commented Jun 11, 2022

Copy link
Copy Markdown
Contributor Author

cuemod v0.5.0

added embed stdlib support.
Now no need to added dagger.io and universe.dagger.io in replace

Signed-off-by: Morlay <[email protected]>
@helderco

Copy link
Copy Markdown
Contributor

Hey @morlay, I'm sorry this took so long. There were other priorities, downtime and internal discussions delaying this.

I'm closing for the same reasons as #2310 (comment), essentially. Specifically, the package management stuff is quite a bit in flux especially now.

I tried drafting a plan for following CUE's proposal closely in small steps such that when the CUE team publishes their tool, we could just replace our stop-gap solution for theirs. There's a few things in cuemod not following that spec that would need fixing.

On the other hand, by forking Go's internals you're able to take advantage of a lot of features from Go modules that we have in our "whishlist", since it's also CUE's proposal to mirror Go modules (with some exceptions). But there's also the maintainability aspect of it to consider, licensing issues, migrations, etc.

The main concern though is that it's just a big dependency for us to have without a stronger comunity behind using it. We feel it's more sensible for us to accept incremental contributions to the plan we have, including to the plan itself, and have more control on the outcome. And as always, discussing design before implementation.

As I said before, this plan is very much in flux right now. For one, we'll be loosening the requirement to match CUE's proposal so closely in favor of improving DX as much as possible. On another hand, we're exploring the possibility of offloading some of our CUE complexity to other languages (SDKs). This means you'd be able to write an action's implementation in Typescript (for example), in which case you'd use npm to manage your dependencies.

It also means you still need a CUE package manager if you want to write actions with the CUE SDK, so the CUE package manager is no longer everything, but just one in several.

I'd love if cuemod could fill the gap for CUE users until it gets replaced by CUE's official tool. Please keep improving the tool and gather user support behind it. You should already be able to use it with dagger for third-party CUE packages. This is what dagger actually needs:

  • dagger project init just needs to make sure there's a cue.mod because that's what we use to detect the root of the "dagger project"
  • dagger project update can be used just to install dagger.io and universe.dagger.io modules into cue.mod/pkg

For third party packages, you can use any system you want that puts those packages in cue.mod/pkg, including cuemod. There's even an issue for handling our built-in modules as external packages so there's that.

Thanks for your effort contributing to dagger, we do appreciate it. Again, we're currently re-thinking our plan for package management in light of other initiatives we're starting, so for now, we need to have full control over dagger project to move quickly.

@helderco helderco closed this Jun 17, 2022
@helderco helderco mentioned this pull request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli All about go code on dagger CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants