Conversation
TomChv
left a comment
There was a problem hiding this comment.
Is it ready to be reviewed? Last one was a draft and I still see unfinished things in the code
e008cc1 to
99fe6d7
Compare
|
Hey @jlongtine, I need this for #1351. What do you need to move forward? |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
We went through DX together, it all looks good, no issue on my end (unless something changed in the last couple days). |
|
@helderco After a chat with @aluzzardi, I'm going to focus on this and get it across the line. |
|
We're rooting for you @jlongtine :) |
7c80b01 to
a984fc6
Compare
|
Because I'm actually checking to see if the request path is an action (i.e. has a |
|
I see. I think that's ok to change. Instead of allowing to |
|
In the case of the pullOutputFile: core.#ReadFile & {
input: pull.output
path: "/output.txt"
+ } & {
+ // Check output file in the pulled image
+ contents: randomString.contents
}
-
- // Check output file in the pulled image
- pullContent: string & pullOutputFile.contents & randomString.contents |
|
@helderco That test is still valid, actually. CUE will fill those values and check that they are the same. |
|
I know, but you seem to have had to change bats to target |
Yes, that's correct. |
|
Just flagging a potential issue: I've actually ended up writing pure cue actions in at least once case, when I only process inputs without the need for core actions. This is how I hit #1789. Is it possible to ensure that regular structs are taken into account by I think in the future this problem might go away with #1598, if it defines an explicit |
It would be great, problem is, cue/flow doesn't run those. |
I don't think it needs to, as long as it runs the client actions wired to it (both inputs and outputs). |
|
Yes, true. There's still the case of targetting a scalar or something that doesn't reference core actions eventually, but maybe that's out of scope for this PR. Anyway, what should happen with |
a984fc6 to
2aad8b3
Compare
aluzzardi
left a comment
There was a problem hiding this comment.
Looks good! Left a minor comment
2aad8b3 to
71f6250
Compare
Signed-off-by: Joel Longtine <[email protected]>
71f6250 to
dae0ee1
Compare
cmd/dagger/cmd/do.go
Outdated
plan/action.go
Outdated
There was a problem hiding this comment.
Suggestion:
const ScalarKind cue.Kind = cue.StringKind | cue.NumberKind | cue.BoolKind
...
validKind := ik.IsAnyOf(ScalarKind)
Had to recreate #1902 because of private -> public transition
Signed-off-by: Joel Longtine [email protected]