aspect-build / rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org
https://docs.aspect.build/rules/aspect_rules_ts
Apache License 2.0
104 stars 58 forks source link

always set 'use_default_shell_env' in ctx.actions.run #620

Open malt3 opened 4 months ago

malt3 commented 4 months ago

Aspect uses shell wrappers that invoke tools like dirname and uname. When the default shell env is not inherited, this prevents tools from being found on systems without a working fallback $PATH (like NixOS).

This might be incompatible with setting the env attribute, unless the bazel flag --incompatible_merge_fixed_and_default_shell_env is set on Bazel versions < 7.

See also: https://github.com/NixOS/nixpkgs/issues/289505


Changes are visible to end-users: no

Test plan