Skip to content

tools/run.py --release still executes target/debug/goboscript #348

@aspizu

Description

@aspizu

Repro

tmp=$(mktemp -d /tmp/goboscript-run-release-XXXXXX)
printf 'costumes "blank.svg";\n\n' > "$tmp/stage.gs"
printf '<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>\n' > "$tmp/blank.svg"

# simulate a clean tree with no debug binary
mv target/debug/goboscript target/debug/goboscript.bak
uv run tools/run.py --release "$tmp"
mv target/debug/goboscript.bak target/debug/goboscript

Observed:

Finished `release` profile [optimized] target(s) in ...
FileNotFoundError: [Errno 2] No such file or directory: 'target/debug/goboscript'

tools/run.py --release runs cargo build --release, but still invokes target/debug/goboscript for project builds. Parallel mode also hardcodes the same debug path.

Expected

--release should execute target/release/goboscript after building the release profile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions