Conversation
|
@shykes here ya go! |
|
Nice! Based on your implementation work so far, does it seem doable in a robust way? Anything notable that you noticed? Design tradeoffs, feasability issues? |
|
One question in particular: how should we (and can we?) handle multiple levels of depth? For example in this case: Ideally Then Do you see any obstacles to implementing it this way? |
|
I don't see any issues right now but will try and report back. Until then it's worth noting that the form |
d66e9eb to
428f77d
Compare
|
POC looks good to me. Some suggestions regarding the architecture: one outstanding issue I see is we have a custom "actions scanner" within Knowing about actions is not only useful to The Actions API proposal helps formalizing that, but in the meantime, I think we can achieve something very similar by leveraging cue flow (credits to @shykes for the idea). In a nutshell:
The naive implementation (without Actions API) would be to use flow to scan for "core actions" (e.g. tasks) and then assume every parent in the tree is an action as well. To illustrate: actions: {
web: frontend: {
// Build via yarn
build: yarn.#Build & { ... }
...
Once we move forward with the Actions API, we'd only need to update the core logic in plan.Actions and it will be reflected in |
185d56c to
8fdbd31
Compare
37c370c to
561e59d
Compare
b2d9d2a to
45dbb1f
Compare
|
FWIW, I tested on one of my sample config it works great. LGTM on my side. |
66ad128 to
55ec9b0
Compare
Signed-off-by: Richard Jones <[email protected]>
55ec9b0 to
6cdf132
Compare
|
✔️ Deploy Preview for devel-docs-dagger-io ready! 🔨 Explore the source changes: 6cdf132 🔍 Inspect the deploy log: https://app.netlify.com/sites/devel-docs-dagger-io/deploys/621e7b9d5e9fae00074c149a 😎 Browse the preview: https://deploy-preview-1648--devel-docs-dagger-io.netlify.app |
|
Nice work! |
dagger dois an evolution of what wasdagger up -t. By organizing related actions under a single key,dagger dolet's you easily target that part of the plan, makingdaggervery similar to and a modern replacement formakeThe actions listed here are pulled from the
actions:key of the plan, and the description is pulled from the comment associated with the field. The actions positional arguments allow you to target subactions (and have no limit to depth):Signed-off-by: Richard Jones