Skip to content

fix: call exercism by absolute path in install_exercism#54

Merged
bushidocodes merged 1 commit into
masterfrom
fix/exercism-upgrade-abspath
Jun 16, 2026
Merged

fix: call exercism by absolute path in install_exercism#54
bushidocodes merged 1 commit into
masterfrom
fix/exercism-upgrade-abspath

Conversation

@bushidocodes

Copy link
Copy Markdown
Owner

Problem

install_exercism runs exercism upgrade right after installing the binary to ~/.local/bin/exercism, but ~/.local/bin isn't on PATH within install.sh's own process (it's only added by init_private_paths in a new shell). On a first install:

./install.sh: line 202: exercism: command not found

The binary still installs (3.5.8); only the self-upgrade is skipped — but it's a spurious error on every fresh install.

Fix

(cd ~ && ~/.local/bin/exercism upgrade)

Found by re-running install.sh in a fresh ubuntu:24.04 container.

Fixes #51

🤖 Generated with Claude Code

`exercism upgrade` failed on a fresh install because ~/.local/bin
(where the binary was just installed) isn't on PATH within install.sh's
own process — it's only added by init_private_paths in a new shell:

    ./install.sh: line 202: exercism: command not found

Invoke it by absolute path. Found by re-running install.sh in a fresh
ubuntu:24.04 container.

Fixes #51

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bushidocodes bushidocodes merged commit 50349fe into master Jun 16, 2026
2 checks passed
@bushidocodes bushidocodes deleted the fix/exercism-upgrade-abspath branch June 16, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install_exercism: 'exercism upgrade' fails (~/.local/bin not on PATH during install)

1 participant