#๐ question about the `core project`
1 messages ยท Page 1 of 1 (latest)
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
no worries, improvements coming soon! ๐ค
@ruby rain can you remind me what's the query to dynamically load a dependency intro a project?
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
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
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.)
got bitten again by the extensions / dependencies confusion.