Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

bug: refresh venv if .rtx.toml is modified #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
26 changes: 6 additions & 20 deletions rtx.plugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,16 @@

[exec-env]
cache-key = [
"""
{% if project_root %}
{{ project_root | canonicalize }}
{% endif %}
""",
"""
{% if opts.virtualenv %}
{{ opts.virtualenv }}
{% endif %}
"""
"{% if project_root %}{{ project_root | canonicalize }}{% endif %}",
"{% if project_root %}{% set config_path = project_root ~ '/.rtx.toml' %}{% if config_path is file_exists %}{{ config_path | last_modified }}{% endif %}{% endif %}",
"{% if opts.virtualenv %}{{ opts.virtualenv }}{% endif %}",
]

[list-bin-paths]
cache-key = [
"""
{% if project_root %}
{{ project_root | canonicalize }}
{% endif %}
""",
"""
{% if opts.virtualenv %}
{{ opts.virtualenv }}
{% endif %}
"""
"{% if project_root %}{{ project_root | canonicalize }}{% endif %}",
"{% if project_root %}{% set config_path = project_root ~ '/.rtx.toml' %}{% if config_path is file_exists %}{{ config_path | last_modified }}{% endif %}{% endif %}",
"{% if opts.virtualenv %}{{ opts.virtualenv }}{% endif %}",
]

[list-legacy-filenames]
Expand Down