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
Should there also be an option to pass a *core.Project to engine.Start( Config{ ... } ) instead of a path to a project yaml?
Yeah I can't think of any reason why not. For other language SDKs that have to invoke the engine as a subprocess I guess the equivalent might be the ability to pass a json string for dagger.json rather than a path to it.
Or if we want to be really fancy, you could pass a uri to the engine cli as an arg:
local://path/to/dagger.json
json://{"literal":"json"}
git://https://github.com/....
URI might be way overkill for now, but maybe in time.
Activity
kpenfound commentedon Oct 7, 2022
Stop me if this should be a separate issue, but I'm commenting here because I think the concerns are related
Should there also be an option to pass a
*core.Projecttoengine.Start( Config{ ... } )instead of a path to a project yaml?sipsma commentedon Oct 7, 2022
Yeah I can't think of any reason why not. For other language SDKs that have to invoke the engine as a subprocess I guess the equivalent might be the ability to pass a json string for
dagger.jsonrather than a path to it.Or if we want to be really fancy, you could pass a uri to the engine cli as an arg:
local://path/to/dagger.jsonjson://{"literal":"json"}git://https://github.com/....URI might be way overkill for now, but maybe in time.
shykes commentedon Oct 7, 2022
This makes sense, keeping in mind we’ll want to support fetching a project file from Dagger Cloud as well.
sipsma commentedon Oct 13, 2022
This will be closed by #3281
Without making dagger.json optional it started polluting tons of directories, so just threw this change in there.
sipsma commentedon Oct 13, 2022
Merged #3281