#Why does docker shell fail to start inside a git repo?

1 messages · Page 1 of 1 (latest)

latent pendant
#
~/workspace/useful_saves$ dagger shell
✔ connect 0.1s
✘ looking for module 0.1s
! input: moduleSource source root path "../.." escapes context "/home/netikras/workspace/useful_saves"
│ ✘ moduleSource(refString: "."): ModuleSource! 0.0s
│ ! source root path "../.." escapes context "/home/netikras/workspace/useful_saves"

Setup tracing at https://dagger.cloud/traces/setup. To hide set DAGGER_NO_NAG=1
Error: find module ".": input: moduleSource source root path "../.." escapes context "/home/netikras/workspace/useful_saves"

↑18:30:29 [1]

I'm trying to spin up a dagger shell in my codebase's repo to run and test the .dagger script I'm working on. But it fails...
And it also fails with the exact same error if I try to dagger shell in that same directory.

If I mv .git .git2, then dagger shell works again.

is this expected?

#

this happens in other git repos too. Neither of them have anything to do with dagger modules

rotund nymph
latent pendant
#

probably. Except I'm not 'within a dagger module'

rotund nymph
#

Are you sure there isn't a dagger.json in any parent directory?

latent pendant
#

I'll be damned...

../../dagger.json

Somehow I created one in my homedir. days ago

#

thanks!!!

rotund nymph
#

Nice 🙂 It's still a bug though... sorry