Skip to content

Export base-bash-libs version constant#30

Merged
codeforester merged 1 commit into
masterfrom
enhancement/16-20260618-library-version-export
Jun 18, 2026
Merged

Export base-bash-libs version constant#30
codeforester merged 1 commit into
masterfrom
enhancement/16-20260618-library-version-export

Conversation

@codeforester

Copy link
Copy Markdown
Owner

Summary

  • Add readonly BASE_BASH_LIBS_VERSION when lib_std.sh is sourced.
  • Read the value from the repository/package VERSION file so that file remains the source of truth.
  • Document the version constant in the root README and stdlib README.

Validation

  • RED: bats --filter "stdlib exposes readonly package version" lib/bash/std/tests/lib_std.bats failed before the fix because BASE_BASH_LIBS_VERSION was unset.
  • GREEN: bats --filter "stdlib exposes readonly package version" lib/bash/std/tests/lib_std.bats
  • bats lib/bash/std/tests/lib_std.bats
  • shellcheck --severity=error lib/bash/std/lib_std.sh lib/bash/std/tests/lib_std.bats
  • git diff --check
  • ./tests/validate.sh

Fixes #16

@codeforester codeforester merged commit 2a926d6 into master Jun 18, 2026
2 checks passed
@codeforester codeforester deleted the enhancement/16-20260618-library-version-export branch June 18, 2026 18:03
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.

Export a sourceable library version constant

1 participant