I have a project initialized with .dagger directory.
I am calling from another repo.
I was hoping the .dagger/ module being called since it's not in a monorepo, would have access to ${repo}/chart but didn't seem to work, as only had access to the directory if I moved it into .dagger/ .
While I know this behavior is for modules, I thought maybe .dagger/ with a single module in the repo might have access to the remaining directories in the repo root.
{
"name": "ragnarok-chart",
"engineVersion": "v0.18.18",
"sdk": {
"source": "go"
},
"source": ".dagger"
}
Is there something I can tweak to make the directory ./chart work without having to be .dagger/chart?
// Mount the chart directory from the current module's source at /chart.
// We assume the chart lives in ./chart within the repo containing .dagger
chartDir := dag.CurrentModule().Source().Directory("chart")