Files
rules_bun/tests/bundle_test/verify_hermetic_shape.sh
2026-03-15 11:04:44 +01:00

10 lines
327 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
rule_file="$1"
grep -Fq 'def _output_name(target_name, entry):' "${rule_file}"
grep -Fq 'stem = entry.short_path.rsplit(".", 1)[0]' "${rule_file}"
grep -Fq 'validate_hermetic_install_mode(ctx.attr, "bun_bundle")' "${rule_file}"
grep -Fq 'declare_staged_bun_build_action(' "${rule_file}"