From 604950a37d0d2150b7ef617fbc61d9708f7317c0 Mon Sep 17 00:00:00 2001 From: Zhe Feng Date: Tue, 1 Dec 2026 08:55:24 +0000 Subject: [PATCH 1/2] release prep: uniform Upstream link in the README navigation; update_mcpp_index.py accepts a release without a CN mirror --- README.zh.hant.md | 2 +- README.zh.md | 2 +- tools/ci/update_mcpp_index.py | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.zh.hant.md b/README.zh.hant.md index cfb4c83f4..d1a2e3527 100644 --- a/README.zh.hant.md +++ b/README.zh.hant.md @@ -2,7 +2,7 @@ > Boost 1.92.0 的 C++23 具名模組封裝 —— 用 `import` 引入,繼續寫 `boost::`。 -**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [上游](https://github.com/boostorg/boost) · [發佈](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index) +**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [Upstream](https://github.com/boostorg/boost) · [發佈](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index) [![C++23](https://img.shields.io/badge/C%2B%2B-23-blue.svg)](https://en.cppreference.com/w/cpp/23) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) diff --git a/README.zh.md b/README.zh.md index 82c3c9a94..ba83e12f8 100644 --- a/README.zh.md +++ b/README.zh.md @@ -2,7 +2,7 @@ > Boost 1.92.0 的 C++23 命名模块封装 —— 用 `import` 引入,继续写 `boost::`。 -**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [上游](https://github.com/boostorg/boost) · [发布](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index) +**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [Upstream](https://github.com/boostorg/boost) · [发布](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index) [![C++23](https://img.shields.io/badge/C%2B%2B-23-blue.svg)](https://en.cppreference.com/w/cpp/23) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) diff --git a/tools/ci/update_mcpp_index.py b/tools/ci/update_mcpp_index.py index d4e2b40d9..bbb135ea4 100755 --- a/tools/ci/update_mcpp_index.py +++ b/tools/ci/update_mcpp_index.py @@ -32,6 +32,15 @@ def version_block(key, global_url, cn_url, sha256, indent): pad = " " * indent inner = " " * (indent + 4) + if cn_url is None: + # Without a mirror the index wants the plain string: its lint refuses a + # url table whose CN entry is not a gitcode release asset. + return ( + f'{pad}["{key}"] = {{\n' + f'{inner}url = "{global_url}",\n' + f'{inner}sha256 = "{sha256}",\n' + f'{pad}}},\n' + ) url_inner = " " * (indent + 8) return ( f'{pad}["{key}"] = {{\n' @@ -82,7 +91,9 @@ def main(): parser.add_argument("--file", required=True, help="descriptor to patch in place") parser.add_argument("--key", required=True, help="bare xpm version key, no leading v") parser.add_argument("--global-url", required=True) - parser.add_argument("--cn-url", required=True) + parser.add_argument("--cn-url", + help="gitcode mirror asset; omit while no mirror exists " + "(rerun with it to replace the block)") parser.add_argument("--sha256", required=True) parser.add_argument("--indent", type=int, default=12, help="indent of the version key lines (default: 12)") @@ -94,7 +105,7 @@ def main(): tag = "mwrap-" + args.key asset = "boost-m-" + args.key + ".tar.gz" for label, url in (("GLOBAL", args.global_url), ("CN", args.cn_url)): - if asset not in url: + if url is not None and asset not in url: sys.exit(f"error: {label} URL does not name the asset '{asset}': {url}") if tag not in args.global_url: sys.exit(f"error: GLOBAL URL does not name the immutable tag '{tag}': {args.global_url}") From 3f74905ba4ab689fcd81f5b39103732442f6e077 Mon Sep 17 00:00:00 2001 From: Zhe Feng Date: Tue, 1 Dec 2026 09:02:52 +0000 Subject: [PATCH 2/2] release archive: leave out the one non-ASCII path, which Windows extraction misnames --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitattributes b/.gitattributes index 0080fb461..88ed1bce3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,3 +18,9 @@ tools/export_policy.toml text eol=lf # Linux and a Windows checkout hash identically (upstream/documents.json and the # release archive depend on it). upstream/** -text + +# Boost.Wave test data in a directory named with non-ASCII characters: mcpp's +# extraction of the release archive on Windows decodes the UTF-8 name as an OEM +# code page. Only Wave's own tests read it, so the archive leaves it out; the +# vendored tree keeps it. +upstream/boost/libs/wave/test/testwave/testfiles/utf8-test-* export-ignore