You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that contents here is a string and output contains the #FS while other structs (like input.directories provide contents as an #FS and no output
I propose that the same key always be the same value: contents OR output is always #FS and when a string type is provided it is made available through another key like text
inputs: ✅ I was indifferent (kind of like that input.directories sounded like “input directories”). But since this solves our shadowing problem, let’s do it.
outputs ✅ Same as inputs.
proxies ❌ There is only one proxy, configured by this field. Alternatives like proxyServices, services, endpoints, proxyEndpoints are nominally more consistent, but IMO not as good as proxy.
This is on purpose, because build is not meant to be chained to parent instructions, which is what the input convention is for. It’s more like #GitPull, #ImagePull, #Scratch: always the first in the pipeline.
Activity
shykes commentedon Dec 17, 2021
inputs: ✅ I was indifferent (kind of like thatinput.directoriessounded like “input directories”). But since this solves our shadowing problem, let’s do it.outputs✅ Same as inputs.proxies❌ There is only one proxy, configured by this field. Alternatives likeproxyServices,services,endpoints,proxyEndpointsare nominally more consistent, but IMO not as good asproxy.talentedmrjones commentedon Dec 17, 2021
As the spec is now
proxy: [string]: _#proxyEndpointallows multiple. Do you intend for it to be the following instead?proxy: [string]: _#proxyEndpoint & struct.MaxFields(1)shykes commentedon Dec 17, 2021
There is one proxy, which can be configured with multiple endpoints. To be more explicit, this could be:
I had initially skipped the
endpointsfield to keep paths shorter.samalba commentedon Dec 21, 2021
Adding some more consistencies issues to address:
engine.#Build.sourceshould be calledengine.#Build.input-dagger/stdlib/europa/dagger/engine/image.cue
Line 78 in 13e7236
engine.#Push.destshould not be abbreviated. I would call ittargetordestination-dagger/stdlib/europa/dagger/engine/image.cue
Line 8 in 13e7236
shykes commentedon Jan 3, 2022
This is on purpose, because build is not meant to be chained to parent instructions, which is what the input convention is for. It’s more like
#GitPull,#ImagePull,#Scratch: always the first in the pipeline.shykes commentedon Jan 3, 2022
Closing this in favor of more specific issues.
engine.#Push.dest: answered in a separate comment.