containers / containers/bubblewrap
Massive bindings that requires more than 9000 args
- Dominant language
- C
- Stars
- 8.7k
- Forks
- 386
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 11
Description
Hey there, it's about the 9000 args limit!
https://github.com/containers/bubblewrap/blob/d6180f25b164c708b8b0a0d86d6a9642f30cd9a9/bubblewrap.c#L1768C1-L1779
**Short issue:**
*How to bind a *massive* amount of files, without copying them to a tempfs (I don't want duplicated data)?*
The code says I should link them, but in order to symlink them, I would have to bind the src file (which makes me go into the same problem). I could also hardlink it but I use different devices for the files I wanna bind so I get `Invalid cross-device link`
**Context (not essential):**
I'm doing a program that sandboxes a Minecraft client with Nix (no need to know Nix at all, this is just to give context). Nix stores all the resources, files, etc... in the Nix store (`/nix/store`), and so I have this massive amount of assets files in `/nix/store`. **Every asset is in `/nix/store`, but not everything in `/nix/store` is an asset**.
And so I have the list of assets paths to give to bubblewrap (assets are still located in `/nix/store`), and it's too big.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.