Hey guys, I'm getting an infinite loop when trying to run codegen for a module that contains a relative dependency.
src here is the local module directory.
// Generate Dagger code and merge with source.
codegen := src.AsModule().GeneratedContextDirectory()
src = src.WithDirectory(".", codegen)
dagger.json
{
"name": "go-lint-tests",
"engineVersion": "v0.18.16",
"sdk": {
"source": "go"
},
"dependencies": [
{
"name": "go-lint",
"source": ".."
}
]
}
Output:
▼ .check(
│ ┆ git: Host.directory(path: "/Users/luke.brakel/workspace/library-ci-workflows/.git", exclude: [], noCache: true): Directory!
│ ┆ src: Host.directory(path: "/Users/luke.brakel/workspace/library-ci-workflows/modules/go-lint/tests", exclude: ["*", "!**/*.go", "!**/go.mod", "!**/go.sum", "!**/dagger.json", "!.golangci.yaml"]): Directory!
│ ): Void 7.9s
! context canceled
╰─▼ check 11.5s
├─▶ Directory.exists(path: "go.mod"): Boolean! 0.0s
│
├─▶ Directory.exists(path: "dagger.json"): Boolean! 0.0s
│
├─● Directory.file(path: ".golangci.yaml"): File! 0.0s
│
╰─▼ Directory.asModule: Module! 7.8s
! context canceled
╰─▼ Directory.asModuleSource(sourceRootPath: "."): ModuleSource! 7.8s
! context canceled
╰─▼ Directory.asModuleSource(sourceRootPath: ".."): ModuleSource! 7.8s
! context canceled
╰─▼ Directory.asModuleSource(sourceRootPath: "../.."): ModuleSource! 7.8s
! context canceled
╰─▼ Directory.asModuleSource(sourceRootPath: "../../.."): ModuleSource! 7.8s
...
That will continue on, quickly becoming unresponsive.
Any thoughts?