Skip to content

Fix serve of nested session from shim #4206

@sipsma

Description

@sipsma

Realized as I was chatting about something that the serving of a nested session needs to occur inside the shim() func, whereas today it's in the setupBundle() func: https://github.com/sipsma/dagger/blob/6272f1919c78abb46c83fe5e1e460a71ef7a9980/cmd/shim/main.go#L207-L207

Otherwise, the local dirs referenced by the nested session will be incorrect and outside the container.

The fix is simple but going to add some explicit tests for this. It got missed because previously our test coverage of nested sessions happened implicitly by using dagger-in-dagger to run all our CI tests, but since we moved away from that it's not covered anymore

Metadata

Metadata

Assignees

Labels

area/engineAbout dagger core enginekind/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions