- Rebrand commits already in history (gsd → forge) - Sync pre-existing doc, docker, and CI config updates - All rebrand artifacts verified in place: * Native crates: forge-engine, forge-ast, forge-grep * Log prefixes: [forge] across 22+ files * Binary: ~/bin/sf-run * Workspace scopes: @sf-run/*, @singularity-forge/* * Nix flake: Rust toolchain ready System ready for: nix develop && bun run build:native Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
1,008 B
Bash
Executable file
27 lines
1,008 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# ──────────────────────────────────────────────
|
|
# SF First-Boot Bootstrap
|
|
#
|
|
# Runs once on initial container creation.
|
|
# Called by entrypoint.sh as the gsd user.
|
|
#
|
|
# This script is idempotent — safe to run multiple
|
|
# times, but the sentinel in entrypoint.sh ensures
|
|
# it only runs once in practice.
|
|
# ──────────────────────────────────────────────
|
|
|
|
# ── Git Identity ────────────────────────────────────────
|
|
# Without this, git commits inside the container will fail
|
|
# or use garbage defaults.
|
|
|
|
if [ -n "${GIT_AUTHOR_NAME}" ]; then
|
|
git config --global user.name "${GIT_AUTHOR_NAME}"
|
|
fi
|
|
|
|
if [ -n "${GIT_AUTHOR_EMAIL}" ]; then
|
|
git config --global user.email "${GIT_AUTHOR_EMAIL}"
|
|
fi
|
|
|
|
echo "Bootstrap complete."
|