Skip to content

Install starship with its install script in the dev container - #88

Merged
TheAngryByrd merged 2 commits into
masterfrom
devcontainer-starship-install
Nov 23, 2026
Merged

TheAngryByrd merged 2 commits into
masterfrom
devcontainer-starship-install

Conversation

@TheAngryByrd

Copy link
Copy Markdown
Owner

Summary

The build-devcontainer job failed on #85 and #87 before any build step ran:

urllib.error.HTTPError: HTTP Error 403: rate limit exceeded
ERROR: Feature "Starship (via Github Releases)" (ghcr.io/devcontainers-extra/features/starship) failed to install!

The devcontainers-extra starship feature asks the GitHub API for the latest release without a token. This PR takes the fix from TheAngryByrd/MiniScaffold#371:

 .devcontainer/devcontainer.json
-  "ghcr.io/devcontainers-extra/features/starship:1": {},
-  "ghcr.io/devcontainers-contrib/features/starship",      (overrideFeatureInstallOrder)
 .devcontainer/Dockerfile
+RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes && starship --version
 .github/workflows/build.yml  (build-devcontainer runCmd)
+starship --version
+test "$(command -v starship)" = "/usr/local/bin/starship"

The install script downloads the latest release from github.com/starship/starship/releases and makes no GitHub API call. && starship --version makes the image build fail when curl gets no script, because sh then exits 0. The postCreateCommand that adds starship init zsh to ~/.zshrc does not change.

Evidence

docker build of the committed Dockerfile (LF line endings, as git stores it), then docker run:

starship 1.27.0
/usr/local/bin/starship

Merge Danger

Door: two-way.

Blast Radius: dev container and the build-devcontainer CI job only.


Automated PR from an AI coding agent.

🤖 Generated with Claude Code

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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

Comment thread .github/workflows/build.yml Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are recorded for the Starship installation and CI-check changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@TheAngryByrd
TheAngryByrd merged commit 090d266 into master Nov 23, 2026
13 of 15 checks passed
@TheAngryByrd
TheAngryByrd deleted the devcontainer-starship-install branch November 23, 2026 18:56
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.

2 participants