Repository navigation
Description
Part of #138
Popularity: 3/7 corpus consumers (cuda-quantum, holoscan-sdk, slang-server)
Problem
Upstream reflect-cpp ships a development-only vcpkg git submodule in the repository root (.gitmodules). When downstream consumers pull reflect-cpp via CMake FetchContent, CPM, or direct git submodules (with REFLECTCPP_USE_VCPKG=OFF), default recursive submodule checkouts still attempt to clone the large vcpkg submodule unless every consumer manually overrides git submodule settings or drops --recursive.
Observed Downstream Workarounds
NVIDIA/cuda-quantum (90e4aa08)
cudaq/lib/Target/cmake/FetchDependencies.cmake#L24-L31and#L62: must explicitly passGIT_SUBMODULES ""alongsideset(REFLECTCPP_USE_VCPKG OFF):FetchContent_Declare( reflectcpp GIT_REPOSITORY https://github.com/getml/reflect-cpp.git # reflect-cpp GIT_TAG 1327ef1d0b403f1424776da4c47bf0c7a6b0feaa GIT_SUBMODULES "" EXCLUDE_FROM_ALL )
nvidia-holoscan/holoscan-sdk (358c772f)
cmake/deps/reflectcpp.cmake#L16-L20: must explicitly passGIT_CONFIG "submodule.vcpkg.update=none"inrapids_cpm_findin addition toREFLECTCPP_USE_VCPKG OFF:# Holoscan builds reflect-cpp directly; its development-only vcpkg submodule is unused. GIT_CONFIG "submodule.vcpkg.update=none"
hudson-trading/slang-server (1b413a46)
slang-server pins unmodified upstream getml/reflect-cpp as a direct git submodule (.gitmodules#L4-L6) at commit a26047a4. Because reflect-cpp still carries a development-only vcpkg git submodule at its repo root, slang-server had to explicitly drop --recursive from its build docs and CI (commit db0f4ca, PR #564: "Builds: don't require recursive submods"):
docs/start/building.md#L19-L29:# Pull direct submodules (slang and reflect-cpp) git submodule update --init ... Only direct submodules are needed. Leave out `--recursive` to skip reflect-cpp's optional `vcpkg` submodule; slang-server uses its bundled JSON support with `REFLECTCPP_USE_VCPKG=OFF` by default.
.github/workflows/vscode-ci.yml#L40-L42:- name: Checkout server dependencies if: runner.os == 'Linux' run: git submodule update --init
.github/workflows/build.yml#L124,.github/workflows/coverage.yml#L20,.github/workflows/precommit.yml#L20: all configuresubmodules: true(non-recursive).
(Note: FANUC-CORPORATION/fanuc_driver also pulls the unused vcpkg submodule in CI via submodules: recursive without a workaround; see #142.)
Impact & Suggested Direction
- Slow or failing configure/checkout steps (especially in air-gapped / pinned-source / CI environments) for any
FetchContent,CPM, or git submodule consumer that forgetsGIT_SUBMODULES "",GIT_CONFIG "submodule.vcpkg.update=none", or non-recursive submodule init. - Remove the
vcpkggit submodule from the default repo tree (or markupdate = none/ fetch it out-of-band only inreflect-cpp's own dev CI).
Activity
[-]Build/CMake: dev-only vcpkg git submodule fetched by default under FetchContent and CPM[/-][+]Build/CMake: dev-only vcpkg git submodule fetched by default under FetchContent, CPM, and recursive git submodules[/+]build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts
build(cmake): remove dev-only vcpkg git submodule from default checkouts