Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions test-structlog-sentry/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[project]
name = "test-structlog-sentry"
version = "0"
requires-python = ">=3.12"

dependencies = [
"ipdb>=0.13.13",
"structlog-sentry>=2.2.1",
"sentry-sdk",
]

[tool.uv.sources]
sentry-sdk = { path = "../../sentry-python", editable = true }
5 changes: 0 additions & 5 deletions test-structlog-sentry/requirements.txt

This file was deleted.

18 changes: 5 additions & 13 deletions test-structlog-sentry/run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

# exit on first error
set -xe
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

reset

# create and activate virtual environment
python -m venv .venv
source .venv/bin/activate

# Install (or update) requirements
python -m pip install -r requirements.txt

# Run app
python main.py
uv run python main.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fresh uv install not on PATH

Medium Severity

When uv is missing, run.sh installs it then immediately runs uv run, but the installer only puts uv on PATH for future shells. In the same bash process, command -v uv can still fail and the script exits under set -euo pipefail.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b331e33. Configure here.

Loading