#๐Ÿ‘‹ question about the `core project`

1 messages ยท Page 1 of 1 (latest)

ruby rain
#

Yes, there are only dependencies in the cloak.yaml at the root of the repo, not extensions. If you do cloak dev -p examples/alpine/cloak.yaml then you should be able to query the extensions.

You can also query the dependencies key instead from examples

median vine
#

facepalm got bitten again by the extensions / dependencies confusion.

#

thx!

ruby rain
#

no worries, improvements coming soon! ๐Ÿคž

median vine
#

@ruby rain can you remind me what's the query to dynamically load a dependency intro a project?

ruby rain
#

project has an install field. If you select it in a query, it will get installed.

It's really dumb, should at least be a mutation if not re-thought entirely, but that's where it is right now

median vine
#

hmm how do I add the dependency git remote, path and ref and install it to the project? I can't seem to find a field that has those arguments

ruby rain
# median vine hmm how do I add the dependency git remote, path and ref and install it to the p...

So you can create a Filesystem however you want (with git or anything else), then you can select loadProject on it: https://github.com/sipsma/dagger/blob/57685be3dd4eb5f95ef0e38d46ce4b35a1d03cf8/core/project.schema.go#L86-L86

Then you can do whatever you want from there (query metadata, install it, etc.)

GitHub

A portable devkit for CI/CD pipelines. Contribute to sipsma/dagger development by creating an account on GitHub.