summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-10-09 16:51:41 -0700
committerJesse Vincent <jesse@fsck.com>2026-10-09 16:51:41 -0700
commit8e56a31b1b536fc45d8f65581284af47aa87e880 (patch)
tree4ac675daa3415bc836f707c7e60237ac7b66c7d5 /scripts
parent112fc1631f35fafeefde5e96a6b95b5ea391f1b1 (diff)
Release prep for v7.0.0release-7.0-notes
- RELEASE-NOTES.md: v7.0.0 section covering everything on dev since v6.4.2, led by the brainstorming rebuild (#2463, #2482, #2483) - Bump all 11 declared manifests to 7.0.0; OpenCode pin examples point at #v7.0.0 - bump-version.sh --audit matches whole version strings only, so 7.0.0 no longer matches inside 127.0.0.1 - test-render-graphs.sh resolves the real node binary so its empty-PATH case works under version-manager shims (mise, asdf)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bump-version.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh
index 14ead00..2f3acee 100755
--- a/scripts/bump-version.sh
+++ b/scripts/bump-version.sh
@@ -188,7 +188,9 @@ cmd_audit() {
declared_paths+=("$path")
done < <(declared_files)
- # Grep for the version string
+ # Grep for the version string, but not inside a longer number such as an
+ # IP address; a "v" prefix or surrounding quotes still match.
+ local version_pattern="(^|[^0-9.])${current_version//./\\.}([^0-9]|$)"
local found_undeclared=0
while IFS= read -r match; do
local match_file
@@ -212,7 +214,7 @@ cmd_audit() {
fi
echo " $match"
fi
- done < <(grep -rn "${exclude_args[@]}" -F "$current_version" "$REPO_ROOT" 2>/dev/null || true)
+ done < <(grep -rnE "${exclude_args[@]}" "$version_pattern" "$REPO_ROOT" 2>/dev/null || true)
if [[ "$found_undeclared" -eq 0 ]]; then
echo "No undeclared files contain the version string. All clear."