Skip to content

chore(bootstrap): retire duplicate setup scripts, delegate to resq-software/dev - #19

Merged
WomB0ComB0 merged 1 commit into
mainfrom
chore/retire-bootstrap-duplicates
Apr 16, 2026
Merged

WomB0ComB0 merged 1 commit into
mainfrom
chore/retire-bootstrap-duplicates

Conversation

@WomB0ComB0

Copy link
Copy Markdown
Member

Summary

Retires the per-repo duplicated onboarding logic (bootstrap.sh + scripts/setup.sh + scripts/lib/shell-utils.sh) and replaces bootstrap.sh with a ~9-line thin wrapper that delegates to the canonical resq-software/dev installer via REPO=<name>.

  • Single source of truth for onboarding now lives in resq-software/dev.
  • No per-repo drift possible — the shim is all that exists locally.
  • Supports the same unattended path developers already know: ./bootstrap.sh still works.
  • Delete ~600–800 lines of stale shell code per repo.

Test plan

  • shellcheck bootstrap.sh exits 0
  • REPO=<name> YES=1 sh bootstrap.sh (in a throwaway dir) completes and prints the dev install "Ready!" banner
  • CI green

🤖 Generated with Claude Code

…ftware/dev

Replace bootstrap.sh with a ~9-line thin wrapper that curl-pipes the
canonical dev/install.sh with REPO=programs. Delete the per-repo
scripts/setup.sh and scripts/lib/shell-utils.sh drifted copies.

Single source of truth lives in resq-software/dev — no more per-repo
drift, and CI surface shrinks by one directory.
@coderabbitai

coderabbitai Bot commented Apr 16, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@WomB0ComB0 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 50 minutes and 7 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 50 minutes and 7 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f19b7c78-7a25-456b-90e5-a34980e7e594

📥 Commits

Reviewing files that changed from the base of the PR and between 084f865 and 0cededb.

📒 Files selected for processing (4)
  • README.md
  • bootstrap.sh
  • scripts/lib/shell-utils.sh
  • scripts/setup.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/retire-bootstrap-duplicates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@WomB0ComB0
WomB0ComB0 merged commit cb8a1e6 into main Apr 16, 2026
11 of 12 checks passed
@WomB0ComB0
WomB0ComB0 deleted the chore/retire-bootstrap-duplicates branch April 16, 2026 22:47

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors the project's onboarding process by replacing local setup scripts with a remote installer. Specifically, it updates the README, modifies bootstrap.sh to delegate to a central repository, and removes the now-redundant setup.sh and shell-utils.sh files. Feedback was provided to address regressions in bootstrap.sh, including the loss of argument forwarding, hardcoded environment variables that prevent user overrides, and potential silent failures during the remote script download.

Comment thread bootstrap.sh
Comment on lines +8 to +9
export REPO=programs
exec sh -c "$(curl -fsSL https://raw.githubusercontent.com/resq-software/dev/main/install.sh)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The current implementation has two functional issues and a reliability concern:

  1. Environment Variable Override: Hardcoding export REPO=programs prevents users from specifying a different repository name via the environment, which contradicts the test plan mentioned in the PR description (REPO=<name> YES=1 sh bootstrap.sh).
  2. Missing Argument Forwarding: Command-line arguments (e.g., --yes, --skip-keygen) are not passed to the delegated installer. This is a regression from the previous version which used "$@" to support unattended setups.
  3. Error Handling: In many sh implementations (such as dash), set -e does not catch failures in command substitution when used as a direct argument to a command. If curl fails (e.g., due to a 404 or network issue), the script may silently continue and execute an empty string via sh -c.

Consider capturing the installer script into a variable first to ensure the download succeeded before execution, and use a default assignment for REPO to maintain flexibility.

Suggested change
export REPO=programs
exec sh -c "$(curl -fsSL https://raw.githubusercontent.com/resq-software/dev/main/install.sh)"
export REPO="${REPO:-programs}"
INSTALLER=$(curl -fsSL https://raw.githubusercontent.com/resq-software/dev/main/install.sh) || exit 1
exec sh -c "$INSTALLER" sh "$@"

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.

1 participant