From a019511e165ebfae4a6120354e106dba7c585bcd Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 31 Aug 2026 13:31:06 +0000 Subject: [PATCH] build: drop the reference-only burn submodule that broke every git-dep consumer crates/burn/upstream was a git submodule on AdaWorldAPI/burn used as pure reference material: crates/burn/src reads nothing from it and crates/burn is workspace-excluded. Cargo clones git dependencies with submodules unconditionally, so every consumer of this repo as a git dep (medcare-rs pulls chacha20 from here) paid a full burn fetch per cold build - and on 2026-08-31 Railway's builder died on that fetch (unauthenticated fetch-by-SHA against GitHub's shared-IP rate limiting: three spurious network retries, then the could-not-read-Username credential prompt). The gitlink was also a commit-pin on an internal sibling - the consumer pin law one layer down. Removed; provenance (source repo, last gitlink, upstream lineage tracel-ai/burn v0.21.0-pre.2) recorded in crates/burn/UPSTREAM-PROVENANCE.md; the sibling repo remains the address for anyone needing the reference tree. Workspace check green; the submodule dir was empty (uninitialized) for every build this session - measured build-inertness, not assumed. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp --- .gitmodules | 3 --- crates/burn/UPSTREAM-PROVENANCE.md | 22 ++++++++++++++++++++++ crates/burn/upstream | 1 - 3 files changed, 22 insertions(+), 4 deletions(-) delete mode 100644 .gitmodules create mode 100644 crates/burn/UPSTREAM-PROVENANCE.md delete mode 160000 crates/burn/upstream diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 79ef9dd4..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "crates/burn/upstream"] - path = crates/burn/upstream - url = https://github.com/AdaWorldAPI/burn.git diff --git a/crates/burn/UPSTREAM-PROVENANCE.md b/crates/burn/UPSTREAM-PROVENANCE.md new file mode 100644 index 00000000..a1e8aa10 --- /dev/null +++ b/crates/burn/UPSTREAM-PROVENANCE.md @@ -0,0 +1,22 @@ +# Upstream provenance — where the reference tree went + +`crates/burn/upstream` was a git SUBMODULE pointing at +`https://github.com/AdaWorldAPI/burn.git` (last gitlink +`9b2b67127b0fbb5387021faf540b7b12b9c4e943` = that repo's merge of PR #4; +upstream lineage: tracel-ai/burn, `v0.21.0-pre.2`). It was pure reference +material: `crates/burn/src` reads nothing from it, and `crates/burn` is +workspace-EXCLUDED besides. + +It is gone because a reference-only submodule taxes EVERY consumer of this +repo as a git dependency: cargo clones git deps with submodules +unconditionally, so `medcare-rs`'s Railway build fetched the full burn fork +just to compile `chacha20` out of this repo — and on 2026-08-31 that fetch +died on GitHub's unauthenticated shared-IP rate limiting +("could not read Username", after three spurious-network retries), taking +the deploy down. A gitlink is also a commit-pin on an internal sibling — +the consumer pin law's spirit, one layer down. + +Need the reference tree? Clone the sibling directly: +`git clone https://github.com/AdaWorldAPI/burn.git` — the fork repo is the +address; this file is the provenance record (tags over pins, per the +internal-pin prohibition). diff --git a/crates/burn/upstream b/crates/burn/upstream deleted file mode 160000 index 9b2b6712..00000000 --- a/crates/burn/upstream +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9b2b67127b0fbb5387021faf540b7b12b9c4e943