tree-sitter/script
Steven Kalt d35efd4608
feat(cli): support building WASM via podman
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.
2024-01-29 00:50:32 -05:00
..
util Rename lib.sh -> scan-build.sh 2017-07-06 10:32:41 -07:00
benchmark Only build the CLI crate when running benchmarks 2021-02-05 11:57:34 -08:00
benchmark.cmd Only build the CLI crate when running benchmarks 2021-02-05 11:57:34 -08:00
build-fuzzers ci: rework fuzzer script 2023-07-24 00:44:44 -04:00
build-wasm feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
build-wasm-stdlib Grow memory dynamically as-needed when loading wasm language modules 2023-12-03 12:12:47 -08:00
check-mallocs Move parser generation code in to 'generate' module within CLI crate 2019-01-07 10:23:01 -08:00
fetch-emscripten Include two more std::string functions in wasm stdlib 2023-10-27 21:54:23 +01:00
fetch-fixtures fix: update javascript tests and use cpp/javascript master for fixtures 2023-09-20 11:31:53 -04:00
fetch-fixtures.cmd chore: switch fetch-fixtures.cmd to all master branches 2023-09-21 11:28:22 +03:00
generate-bindings Return informative error when load_language fails 2023-11-26 12:15:05 -08:00
generate-fixtures cicd: new workflow 2023-04-04 03:42:16 +03:00
generate-fixtures-wasm cicd: new workflow 2023-04-04 03:42:16 +03:00
generate-fixtures.cmd Add --abi flag to generate command, generate version 13 by default 2022-01-17 14:50:47 -08:00
generate-unicode-categories-json Expand regex support to include emojis and binary ops 2022-02-19 11:41:36 -08:00
generate-wasm-exports-list Make scripts work when repo path contains spaces 2019-08-12 15:13:41 -07:00
heap-profile Add heap-profiling script 2020-10-23 13:20:57 -07:00
reproduce Build fuzzer in 'halt' and 'recover' modes 2018-03-02 10:13:13 -08:00
run-fuzzer ci: rework fuzzer script 2023-07-24 00:44:44 -04:00
serve-docs wasm: Fix typo in Node.typeId 2020-02-21 17:06:07 -08:00
show-symbol-sizes Add script for dumping the sizes of each symbol in a dynamic library 2019-06-16 11:17:53 -07:00
test chore: script/test - fix usage, remove trial mention, deleted in 7170ec7c 2023-07-16 19:50:13 +03:00
test-wasm Reorganize language bindings 2019-05-07 10:41:49 -07:00
test.cmd Improve randomized testing setup 2022-03-02 17:12:25 -08:00
version Fix typos 2022-06-28 19:57:42 +08:00