Repository navigation
docs: splitting a dagger plan / exporting packages - #2271
Conversation
marcosnils
left a comment
There was a problem hiding this comment.
LGTM! left some minor suggestions.
104376f to
7d7d8a7
Compare
There was a problem hiding this comment.
That's a great article! I left few comments
I think it would be good to add a section "Publish my package" with a concrete example so users have just to follow steps to publish their own packages.
Maybe you want to do it in another PR regarding your comment :
This is the first one of my serie on the subject. I reduced the scope to avoid losing people along the way
Did you open an issue to track all subjects you want to cover?
1be1ff9 to
ce00cc5
Compare
ce00cc5 to
46edb9d
Compare
dolanor
left a comment
There was a problem hiding this comment.
I think it is good documentation. I'm afraid of presenting too many way to do the same thing.
We should, as the creators of the tool, choose for our users what is the best way to split a package and only explain this. Having 2 ways to do the same thing will fragment the help the people can give as they won't be able to help with the other way, and it will fragment the community between the module splitters and the package splitters.
If I understood correctly, and if it follows Go modules/packages, a module is a more complete way of doing things. We should aim for that, no?
|
Rebased, fixed all the comments above |
helderco
left a comment
There was a problem hiding this comment.
Overall I think it's pretty good, I especially like the Theory & Practice approach 🙂
I know you worked hard on this, thanks!
I just have different opinions on what package management should look like. I think the comments explain what I mean but here's a summary:
Two use cases:
- Project file organization
- Making a reusable package
- Explain difference between dagger project vs dagger package
- Create new dagger project for developing package if needed (you can develop on top of a real project)
- Create repo from the start (or dir to do
git initlater, the idea is that this is what'll be published) - Choose the remote name to use in imports from the start
- Symlink to
<project>/cue.mod/userwhen developing - Just git push to remote with tag, when you're ready to release
As a user, you can always do what you want, but I think this is what we should recommend and focus on.
|
@helderco, I followed your instruction. Can you please review it ? It may not be 100% perfect but follows your guidelines. It is sufficient enough for people to be autonomous |
TomChv
left a comment
There was a problem hiding this comment.
That looks awesome, I left few comments but I really like it! 🚀
helderco
left a comment
There was a problem hiding this comment.
It's much simpler/better, thanks 🙂
I just request that the module concept doesn't get hidden inside the dagger project concept.
General nit: use "CUE" instead of "Cue".
I think this has been address. It's both much simpler and there's a better distinction between the plan file organization and creating a reusable package.
Explains how to rely on modules to split a Plan Signed-off-by: guillaume <[email protected]>
5f0262e to
e8ba5fe
Compare
|
@gerhard, could you please review it too and merge it if everything looks good to you |
|
Looking now. |
There was a problem hiding this comment.
This was much needed, thank you for putting in the time @grouville to write these amazing doc pages!
This is 70% and can be merged. If you want to address my comments above, go for it. Addressing them post-merge also works.
Great job! 🙌
Explains how to create reusable packages (for now) + rebase with main Signed-off-by: guillaume <[email protected]>
e8ba5fe to
c3fe014
Compare
All the requested changes have been implemented, the PR has been rebased. You can merge if you still approve |
Fixes #2220
Fixes #2186
Fixes #2340
Doc explaining how to install/update dagger/external packages.
It contains 4 docs all inter-related. This should give our users enough knowledge on the subject to be autonomous
Signed-off-by: guillaume