Skip to content

cloak.yaml should be optional #3275

Closed
Closed

Description

@shykes

Sometimes you want to run dagger pipelines without loading extensions. At the moment that requires creating an empty cloak.yaml.

As reported by @kpenfound

Activity

  1. added this to the 0.3.0-alpha.1 milestone on Oct 6, 2022
  2. kpenfound commented on Oct 7, 2022

    @kpenfound
    Contributor

    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.Project to engine.Start( Config{ ... } ) instead of a path to a project yaml?

  3. sipsma commented on Oct 7, 2022

    @sipsma
    Contributor

    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.
  4. shykes commented on Oct 7, 2022

    @shykes
    ContributorAuthor

    This makes sense, keeping in mind we’ll want to support fetching a project file from Dagger Cloud as well.

  5. sipsma commented on Oct 13, 2022

    @sipsma
    Contributor

    This will be closed by #3281

    Without making dagger.json optional it started polluting tons of directories, so just threw this change in there.

  6. sipsma commented on Oct 13, 2022

    @sipsma
    Contributor

    Merged #3281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions