Repository navigation
Install starship with its install script in the dev container - #88
Merged
Merged
Conversation
The devcontainers-extra starship feature resolves the latest release with an unauthenticated api.github.com call. On a shared runner over the rate limit it fails with HTTP 403, and the build-devcontainer job fails before any build step. The Dockerfile now runs the official starship install script, which downloads the latest release from github.com/starship/starship/releases and makes no GitHub API call. The devcontainer.json drops the feature, and the CI job checks that starship runs from /usr/local/bin. Same change as TheAngryByrd/MiniScaffold#371. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The CI command lacks fail-fast behavior, so a successful build can mask failed Starship version or path checks and leave the job green despite unmet installation requirements.
1 open issue
What changed in this PR
This PR replaces the Starship dev-container feature with its install script to avoid the GitHub API rate-limit failures that blocked CI on #85 and #87.
Changes:
- Install Starship in the Dockerfile and verify that it runs.
- Remove the Starship feature and its install-order entry, preserving shell initialization.
- Add CI checks for Starship’s version and executable path.
| File | Description |
|---|---|
.github/workflows/build.yml |
Adds Starship checks before the container build commands. |
.devcontainer/Dockerfile |
Installs Starship through its script and checks the version. |
.devcontainer/devcontainer.json |
Removes the replaced Starship feature configuration. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The
build-devcontainerjob failed on #85 and #87 before any build step ran:The
devcontainers-extrastarship feature asks the GitHub API for the latest release without a token. This PR takes the fix from TheAngryByrd/MiniScaffold#371:The install script downloads the latest release from
github.com/starship/starship/releasesand makes no GitHub API call.&& starship --versionmakes the image build fail whencurlgets no script, becauseshthen exits 0. ThepostCreateCommandthat addsstarship init zshto~/.zshrcdoes not change.Evidence
docker buildof the committed Dockerfile (LF line endings, as git stores it), thendocker run:Merge Danger
Door: two-way.
Blast Radius: dev container and the
build-devcontainerCI job only.Automated PR from an AI coding agent.
🤖 Generated with Claude Code