#Shell: lazy arguments
1 messages · Page 1 of 1 (latest)
Oh I remember it was for shell completion
Lol it took me a moment to remember
But I think the current approach works fine actually
I'm having an issue with PortForward because of the serialization. I'm trying to patch it with a new method on the QueryBuilder to not re-marshal an argument that's already marshalled. But I'm duplicating stuff that the query builder already does (marshaling arguments).
So I feel the itch again to make these arguments lazy until the end. It's a bigger change though, that's why I'm going this other route.
@wheat turret, what would you use as key for a command's state? A random id right? What would you use for that? I have an idea that it's best if we don't bring buildkit's identity.NewID into the CLI.
yeah good idea
i know go 1.24 has a new utility for this
but we're not yet on it
(on my todo list)
um, i would probably just identity.NewID for "now", i'll try getting 1.24 into our dev
working on this in here: https://github.com/dagger/dagger/pull/9673