#root resolution strikes again

1 messages · Page 1 of 1 (latest)

strong remnant
#

The way it works today is by taking the module path, and working upwards until we hit a dagger.json or a .git dir, and then we treat that as root. But if we don't find one above, then oop, that's it, we treat the module as a root dir.

#

I can resolve this by just mounting the .git directory through - but also, it feels like kind of a crap exerience for users, understanding root resolution is really not very fun, the implicit .git magic is not super fun when you don't copy it around (and it's huge, so it's annoying to do).

#

I kinda don't have great solutions in my head, the best I can think of is to try and find the "highest" dagger.json file, and use that as the root. So building /home/jed/project would determine the root by looking for /home/dagger.json, /home/jed/dagger.json and /home/jed/project/dagger.json, with the first found one being the root for that module. This has other issues though...

gaunt saffron