always set 'use_default_shell_env' in ctx.actions.run
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
- Covered by existing test cases
thanks for this fix! any chance to merge that?
FYI this PR unblocks me using rules_ts on my NixOS development machine. Would be great to remove the single_version_override in our work repo :)
Friendly ping to @alexeagle
CI seems to be stuck?
Test
1 test target passed
Targets
//.github/workflows:update_aspect_bazelrc_presets_test [k8-fastbuild] 35ms
Total test execution time was 35ms. 170 tests (99.4%) were fully cached saving 12s.
