From e149d5873848213e1010d3ba9196614f37413b27 Mon Sep 17 00:00:00 2001 From: Ramesh Padmanabhaiah Date: Fri, 19 Jun 2026 20:46:06 -0700 Subject: [PATCH] Update Base Foundry references --- README.md | 16 ++++++++-------- lib/bash/README.md | 2 +- tests/validate.sh | 6 ++++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 73e68ed..57ff937 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ | Version | License | Install | Release notes | | --- | --- | --- | --- | -| `0.2.1` | [Apache-2.0](LICENSE) | `brew install codeforester/base/base-bash-libs` | [v0.2.1](https://github.com/codeforester/base-bash-libs/releases/tag/v0.2.1) | +| `0.2.1` | [Apache-2.0](LICENSE) | `brew install basefoundry/base/base-bash-libs` | [v0.2.1](https://github.com/basefoundry/base-bash-libs/releases/tag/v0.2.1) | Reusable Bash libraries extracted from -[Base](https://github.com/codeforester/base). +[Base](https://github.com/basefoundry/base). This repository provides sourceable Bash libraries for scripts that want consistent logging, command execution, filesystem editing, Git helper behavior, @@ -35,18 +35,18 @@ See [`lib/bash/README.md`](lib/bash/README.md) for the package layout. Install the library package from the Base Homebrew tap: ```bash -brew trust codeforester/base -brew install codeforester/base/base-bash-libs +brew trust basefoundry/base +brew install basefoundry/base/base-bash-libs ``` The trust step is required on Homebrew versions that block formulae from non-official taps until the tap is trusted. It is safe to run again on machines -that already trust `codeforester/base`. +that already trust `basefoundry/base`. Source the installed stdlib from the Homebrew prefix: ```bash -base_bash_libs_prefix="$(brew --prefix codeforester/base/base-bash-libs)" +base_bash_libs_prefix="$(brew --prefix basefoundry/base/base-bash-libs)" source "$base_bash_libs_prefix/libexec/lib/bash/std/lib_std.sh" printf 'base-bash-libs version: %s\n' "$BASE_BASH_LIBS_VERSION" ``` @@ -65,7 +65,7 @@ Homebrew. Keep the repository layout intact so `lib_std.sh` can find the root `VERSION` file: ```bash -git clone https://github.com/codeforester/base-bash-libs.git vendor/base-bash-libs +git clone https://github.com/basefoundry/base-bash-libs.git vendor/base-bash-libs ``` Source the stdlib from that checkout: @@ -131,7 +131,7 @@ brew install bats-core shellcheck ## Base -This repository is managed by [Base](https://github.com/codeforester/base). +This repository is managed by [Base](https://github.com/basefoundry/base). Base is useful for developing this repository, but it is not required to consume the Bash libraries from Homebrew, a source checkout, a vendored copy, or a git submodule. diff --git a/lib/bash/README.md b/lib/bash/README.md index a67c9b5..baeb9c2 100644 --- a/lib/bash/README.md +++ b/lib/bash/README.md @@ -15,5 +15,5 @@ Reusable Bash libraries for command wrappers and other Bash tooling. Common BATS helpers for Bash library test suites. The Base runtime shell files and Base version helpers remain in -`codeforester/base`. This repository carries only sourceable reusable library +`basefoundry/base`. This repository carries only sourceable reusable library modules. diff --git a/tests/validate.sh b/tests/validate.sh index 50b69c5..532ae13 100755 --- a/tests/validate.sh +++ b/tests/validate.sh @@ -54,6 +54,12 @@ if ! sed -n '1,30p' README.md | grep -F 'Requires Bash 4.2+' >/dev/null; then exit 1 fi +stale_base_refs="$(grep -R -n -E 'codeforester/base|github.com/codeforester' README.md lib/bash/README.md || true)" +if [[ -n "$stale_base_refs" ]]; then + printf 'README files must not use stale codeforester Base coordinates:\n%s\n' "$stale_base_refs" >&2 + exit 1 +fi + fix_comments="$(grep -R -n '# FIX:' lib/bash || true)" if [[ -n "$fix_comments" ]]; then printf 'Production library files must not contain development # FIX: comments:\n%s\n' "$fix_comments" >&2