Add self contained setup-rebar.sh for download and setup#1
Conversation
This script automates the installation of the rebar tool for contract-driven development, checking dependencies, cloning the repository, setting up the project, and verifying the installation.
Added instructions for installer setup script using curl.
|
Thanks Tim — really appreciate the signal here. The I'm going to land a thinner version on
If you'd like a worked example: backporting #2 from Either way, would love your eyes on #2 — does the shim cover your original need? Anything that felt obvious in your version that I dropped and shouldn't have? Thanks again for filing this; the install ergonomics are clearly worth fixing and your PR is what surfaced it. |
Adds setup-rebar.sh as a one-line installer that clones rebar to ~/.rebar (configurable via REBAR_DIR / --dir), runs bin/install for canonical PATH and completion wiring, and exits pointing at `rebar new` / `rebar adopt` for actual project bootstrap. Deliberately a shim, not a parallel codepath: project creation stays in the Go CLI so this can't drift from `rebar new`, `rebar adopt`, `bin/install`, or `ask init`. Inspired by #1 (ttschampel) — keeps the curl|bash UX, drops the 462-line reimplementation of project bootstrap.
|
Quick follow-up: #2 is merged into
If you run it end-to-end, would love to know:
|
|
Tried out https://github.com/willackerly/rebar/blob/v3.0.1-alpha/setup-rebar.sh It worked well for me. I'm on the fence about how important auto installing dependences is vs just reporting them. The new report missing is a big improvement. |
|
I think there are a few bit missing from the install.
|
Summary
Adds downloadable setup-rebar.sh script and corresponding README instruction update
Contracts
Checklist
CONTRACT:header comment./scripts/check-contract-refs.sh)TODO:comments (./scripts/check-todos.sh)Test Plan