This trace is useless: https://dagger.cloud/Max/traces/bb9003c5186a442bdc340936db5a6a63
Or, at least, it's less useful than it should be.
The path of failure is:
dagger call -m sdk/dotnet/dev publish-thunk ...
sdk/dotnet/bootstrap.ModuleRuntime(...)
... details omitted, succeeds
.withExec()
process inside container: /usr/bin/dotnet /Thunk/Dagger.Thunk.dll
dotnet function: Dagger.Thunk.Main()
functionCall = dag.CurrentFunctionCall()
parentName = functionCall.ParentName() -> "DotnetSdkDev"
dotnet function: Dagger.Thunk.Invocation.Run(functionCall, parentName "DotnetSdkDev", moduleName "DotnetSdkDev")
functionName = functionCall.Name() -> "PublishThunk"
arguments = functionCall.InputArgs()
dotnet function: Dagger.DotnetSdkDev.PublishThunk(arguments)
thunkContainer = sdk/dotnet/bootstrap.Thunk()
dagger engine implementation details
golang function: sdk/dotnet/bootstrap.Thunk(source Directory)
codegened = dag.Directory().WithDirectory(...).AsModuleSource(...).GeneratedContextDirectory()
dagger engine implementation details
golang function: sdk/dotnet/bootstrap.Codegen(...)
build = dag.Container()...WithExec(["foo", "bar"]).Directory("/Out") <- THIS WITHEXEC FAILS
temporary code I put in syncs the WithExec step with expect-any
panics with its stderr & stdout if return code non-zero <- THIS HAPPENS (DOESN'T SEEM TO MATTER)
return dag.Container()...WithDirectory(..., codegened)
return dag.Container()...WithDirectory("/", thunkContainer.Directory(...))...WithExec(...).Stdout()
The trace just shows this:
dagger call ...
sdk/dotnet/bootstrap.ModuleRuntime(...)
... trace shows these details
.publishThunk(...)
upload ...
filesync
copy
...