Files
OrcaSlicer/scripts
Kris Austin 4e020aaf23 Fetch the Flatpak wxWidgets source shallowly again (#17748)
#17743 pinned the source by commit alone, which was the right fix, and added
disable-shallow-clone with it. That flag is what now makes the fetch expensive.

flatpak-builder passes the commit as the ref when no branch or tag is set (get_branch in
builder-source-git.c), then lookup_full_ref in builder-git.c looks that ref up, matching
either a ref name or a ref whose tip is that commit. The commit we pin is now tagged in
the fork, so b44c39c1 is the tip of refs/tags/orca-3.3.2-1 and the lookup resolves it:

    $ git ls-remote https://github.com/OrcaSlicer/Orca-deps-wxWidgets
    b44c39c100975a0ac0e46f937aa3f3eae5e18631  refs/tags/orca-3.3.2-1

With the lookup resolving, flatpak-builder fetches that ref at depth 1. Setting
disable-shallow-clone skips the lookup entirely and falls through to the full
"fetch origin *:*" instead. It also reaches the submodules, which git_mirror_submodules
fetches with the same flags, so wxWidgets' twelve submodules are fetched in full rather
than at depth 1.

Dropping it costs no safety. The lookup falls back to the full fetch on its own if the
pinned commit is ever not a ref tip, which is the case the flag was added for.

The comment claimed the full clone was needed to check out a commit that is not a branch
tip. GitHub serves a depth-1 fetch of an arbitrary commit, so that was not the reason
either. It now just says why the pin names no branch.

The CMake deps recipe is untouched.
2026-11-24 21:23:33 -06:00
..
2025-08-22 20:02:26 +08:00
2025-09-20 09:12:31 +08:00