Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use sandboxed env #49

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/rattler_build_conda_compat/jinja/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Any, TypedDict

import jinja2
from jinja2.sandbox import SandboxedEnvironment
import yaml

from rattler_build_conda_compat.jinja.filters import _bool, _split, _version_to_build_string
Expand All @@ -29,7 +30,7 @@ def jinja_env() -> jinja2.Environment:
Target platform, build platform, and mpi are set to linux-64 by default.
"""

env = jinja2.Environment(
env = SandboxedEnvironment(
variable_start_string="${{",
variable_end_string="}}",
trim_blocks=True,
Expand Down
Loading