Skip to content

Add BASE_PLATFORM runtime metadata#1331

Merged
codeforester merged 1 commit into
mainfrom
feat/1330-20260701-base-platform-runtime-metadata
Jul 1, 2026
Merged

Add BASE_PLATFORM runtime metadata#1331
codeforester merged 1 commit into
mainfrom
feat/1330-20260701-base-platform-runtime-metadata

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Add readonly BASE_PLATFORM runtime metadata while keeping BASE_OS coarse.
  • Classify macOS as macos, Ubuntu/Debian-family Linux as linux-debian, and other Linux distributions as linux-unknown.
  • Document that BASE_DISTRO_ID and BASE_ARCH stay deferred until diagnostics or package selection need separate public axes.

Part of #562.
Fixes #1330.

Validation

  • git diff --check
  • shellcheck --severity=error base_init.sh bin/base-test lib/shell/baserc_guard.sh
  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash bats --print-output-on-failure tests/base_init.bats cli/bash/commands/basectl/tests/update-profile.bats cli/bash/commands/basectl/tests/completions.bats
  • env -u BASE_HOME BASE_CACHE_DIR=/private/tmp/base-1330-base-test BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash ./bin/base-test

@codeforester codeforester marked this pull request as ready for review July 1, 2026 07:32
@codeforester codeforester requested a review from a team as a code owner July 1, 2026 07:32
@codeforester codeforester merged commit 852d984 into main Jul 1, 2026
26 checks passed
@codeforester codeforester deleted the feat/1330-20260701-base-platform-runtime-metadata branch July 1, 2026 07:32
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.

Add BASE_PLATFORM runtime metadata

1 participant