fix: keep python bytecode out of the trusted scripts root
This commit is contained in:
@@ -137,7 +137,7 @@ sed '/^case "\$mode" in/,$d' "$root/scripts/verify-workspace-install-docs.sh" >"
|
||||
# shellcheck source=/dev/null
|
||||
source "$verifier_functions"
|
||||
|
||||
python3 "$root/scripts/test_workspace_descriptor_doc_contract.py"
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/test_workspace_descriptor_doc_contract.py"
|
||||
|
||||
project_topology_fixture="$negative_root/project-topology-contradiction.md"
|
||||
python3 - "$root/PROJECT_STATE.md" "$project_topology_fixture" <<'PY'
|
||||
|
||||
@@ -107,7 +107,7 @@ PY
|
||||
|
||||
verify_workspace_descriptor_doc_contract() {
|
||||
local source="$1" label="$2"
|
||||
if ! python3 "$root/scripts/workspace_descriptor_doc_contract.py" --document "$source"; then
|
||||
if ! PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/workspace_descriptor_doc_contract.py" --document "$source"; then
|
||||
echo "$label violates the workspace descriptor documentation contract" >&2
|
||||
return 1
|
||||
fi
|
||||
@@ -678,7 +678,7 @@ verify_vector_helper_interfaces() {
|
||||
verify_project_state_current_contract() {
|
||||
local source="${1:-$root/PROJECT_STATE.md}"
|
||||
local label="${2:-PROJECT_STATE.md}"
|
||||
if ! python3 "$root/scripts/workspace_descriptor_doc_contract.py" --project-state "$source"; then
|
||||
if ! PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/workspace_descriptor_doc_contract.py" --project-state "$source"; then
|
||||
echo "$label violates the workspace descriptor documentation contract" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user