#module name conflicts

1 messages · Page 1 of 1 (latest)

gusty bison
#

that does seem odd. not sure if it's related, but I found out recently it's somewhat easy to end up with name conflicts in dagger shell, because it also serves module dependencies of any module ref that you use. I wonder if dagger develop is somehow hitting that same path?

not sure why simply renaming would trigger it when it worked with the same name before

gritty yew
#

Loading dependencies has moved to the engine, it's not specific to shell, but it's an option you have to turn on with Module.Serve() and develop doesn't serve the module.

gusty bison
#

but yeah, dagger develop probably isn't

gritty yew
#

Yeah, but Serve(.... includeDependencies: true) is used in more places and that's what's loading the dependencies.

gusty bison
#

feel like that's splitting hairs - i'm pointing out that includeDependencies: true is maybe being used in a place where it shouldn't be, and that path gets called by shell in a situation where it was maybe not intended

gritty yew
#

That's possible yes, it was added by Connor for LLM and I personally haven't thought about the full implications of it. But I don't think it's unintentionally being called by dagger develop.

gusty bison
#

yeah agree, seems unrelated to the original issue thinkspin

gritty yew
#

dagger develop does have a new thing collectLocalModulesRecursive, but I think it needs to be opt-in with -r.

#

Curious if you get the same error with something simple like: dagger -c '.core | module-source . | context-directory | entries'.

#

Oh wait, I think I have an idea here. dagger develop now also does client generation, not just module generation, and client generation also loads dependencies.

#

So I think that error is comming from client generation in moduleSourceGeneratedContextDirectory, which I would expect to show with:

dagger -c '.core | module-source . | generated-context-directory | entries`