zeabur / zbpack

Build your project into static assets, serverless function or container image with magic, no Dockerfile needed!
Mozilla Public License 2.0
277 stars 44 forks source link

refactor(githubfs): Use ZipFS #351

Closed pan93412 closed 2 months ago

pan93412 commented 2 months ago

Description (required)

The TAR retrieved from GitHub may be corrupted. For example, I can see there is a package.json file, but I cannot read it. Therefore, I switched to zipfs, which might be more stable.

This commit also adds a new error message: "repo is too large," since we read the stream to the RAM now. Note that it may introduce $2n$ memory usage.

Related issues & labels (optional)