tree-sitter/cli/src
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
..
generate Revert "Alt #2454" 2023-11-29 11:20:05 +02:00
tests fix: account for grammars in subdirectories, add typescript to test corpus 2024-01-25 14:02:12 -05:00
highlight.rs feat: add an --apply-all-captures argument to highlight & test 2023-08-17 22:20:57 -04:00
lib.rs doc: Include README as top-level module documentation for all crates 2023-08-28 23:09:37 +03:00
logger.rs fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
main.rs feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
parse.rs Fix hang when printing dot graphs from the CLI 2023-10-31 15:59:37 -07:00
playground.html docs: convert various links to https protocol 2023-04-04 18:05:46 +03:00
playground.rs Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
query.rs Add --row-range, --quiet, and --time flags to query subcommand 2023-02-14 14:41:25 -08:00
query_testing.rs feat: add negative assertions, remove duplicate code 2023-07-25 00:27:34 -04:00
tags.rs fix: use SIGINT instead of stdin for interruption to don't mess up piped commands 2023-05-02 10:43:46 +03:00
test.rs Fix hang when printing dot graphs from the CLI 2023-10-31 15:59:37 -07:00
test_highlight.rs Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
test_tags.rs Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
util.rs fix: use SIGINT instead of stdin for interruption to don't mess up piped commands 2023-05-02 10:43:46 +03:00
wasm.rs Add a CLI feature flag for wasm runtime support 2023-10-31 16:56:11 -07:00