mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-14 01:16:19 -04:00
Previously, `tree-sitter build-wasm` had the ability to build WASM
by using docker to pull in an image with a complete emscripten toolchain.
This commit adds the ability to use podman to do the same thing.
Using podman requires two notable changes:
1. Using the fully-qualified image name. Docker defaults to prepending
`docker.io` to the image name, but podman does not.
2. Podman will mount the `/src/` volume as belonging to root unless
`--userns=keep-id` is passed. I think podman's different
volume-ownership is related to podman's daemonless execution and
`--uidmap` functionality, but I'm not 100% sure.
To test, I ran
```sh
script/fetch-fixtures
script/generate-fixtures
script/generate-fixtures-wasm # <- the important one!
```
which worked as well as the docker version.
|
||
|---|---|---|
| .. | ||
| _layouts | ||
| assets | ||
| .gitignore | ||
| _config.yml | ||
| Gemfile | ||
| Gemfile.lock | ||
| index.md | ||
| section-2-using-parsers.md | ||
| section-3-creating-parsers.md | ||
| section-4-syntax-highlighting.md | ||
| section-5-implementation.md | ||
| section-6-contributing.md | ||
| section-7-playground.html | ||
| section-8-code-navigation-systems.md | ||