Skip to content

Sentry release version read relative to the process CWD #1805

Description

@abkfenris
with Path("pyproject.toml").open("rb") as f:

Resolves against the working directory, so release tagging breaks whenever Django starts from anywhere but /app. importlib.metadata.version("buoy-barn") reads it from installed metadata with no file I/O and no tomllib import; BASE_DIR / "pyproject.toml" is the minimal alternative (note BASE_DIR is currently defined after this block, at :103).

Site: settings.py:86

(from #1781)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions