deno_registry2 icon indicating copy to clipboard operation
deno_registry2 copied to clipboard

registry: submodule is not handled correctly

Open kt3k opened this issue 4 years ago • 5 comments

deno_dom module has ./wpt submodule (which points to https://github.com/web-platform-tests/wpt/). When I click wpt folder in https://deno.land/x/[email protected], it shows empty page https://deno.land/x/[email protected]/wpt

kt3k avatar Apr 14 '21 08:04 kt3k

We should add a submodule option to the git clone operation in the publishing process to support this

wperron avatar Apr 14 '21 12:04 wperron

I'm really looking forward to fix this issue, as I got very dissapointed just now figuring out that submodules are not handled correctly 😞

Im-Beast avatar May 08 '21 15:05 Im-Beast

Well, submodules simply aren't handled at all. I've added the feat label so we can start looking into it soon. There's a couple of things to take into consideration, namely the size on disk as submodules can recurse pretty deep.

wperron avatar May 08 '21 16:05 wperron

The thing is repo itself can go very deeply also without using submodules, so they're not a big problem itself. Therefore, there should just be a size limit for a module, however for bigger than desired modules it would be cool if someone could've just "link" their hosting to the system. I don't really know how big performance gap is, so I can't really talk about that tho.

Im-Beast avatar May 08 '21 17:05 Im-Beast

There's a logical limit of 20mb by default that we check but there's also an implicit limit because of Lambda's 512mb filesystem limit that we can't do anything about. I imagine that repos using submodules risk triggering that limit more often, but I guess we'll just have to monitor it and get some statistics.

wperron avatar May 08 '21 17:05 wperron