Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scout/memory/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
- [[knowledge/keep-cel-runtime-out-of-parser-installation.md|Keep cel-runtime out of parser installation]] (decision, 0.99) `cmake` `cpm` `dependencies` `installation`
- [[knowledge/keep-operator-local-storage-out-of-recursive-precedence-frames.md|Keep operator-local storage out of recursive precedence frames]] (discovery, 0.98) `parser` `recursion` `stack-usage` `MSVC`
- [[knowledge/pin-cpm-dependencies-to-reviewed-commits.md|Pin CPM dependencies to reviewed commits]] (decision, 0.10) `cmake` `cpm` `dependencies` `supply-chain` `installation`
- [[knowledge/pin-runtime-source-with-a-versioned-cpm-uri.md|Pin runtime source with a versioned CPM URI]] (decision, 0.99) `cmake` `cpm` `dependencies` `supply-chain`
- [[knowledge/pin-runtime-source-with-a-versioned-cpm-uri.md|Pin runtime source with a versioned CPM URI]] (decision, 0.97) `cmake` `cpm` `dependencies` `supply-chain`
- [[knowledge/separate-cel-constructor-names-from-runtime-record-identities.md|Separate CEL constructor names from runtime record identities]] (decision, 1.00) `records` `parser` `identifiers` `registration`
- [[knowledge/test-preset-can-inherit-cached-parity-flag.md|Test preset can inherit cached parity flag]] (discovery, 0.97) `cmake` `testing` `parity` `cache`
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "Pin runtime source with a versioned CPM URI"
entity_type: decision
confidence: 0.99
confidence: 0.97
created: 2026-11-18T06:31:11Z
last_accessed: 2026-11-18T06:31:11Z
last_reinforced: 2026-11-18T06:31:11Z
access_count: 1
last_accessed: 2026-11-22T00:33:52Z
last_reinforced: 2026-11-22T00:33:52Z
access_count: 4
sources:
- "CMakeLists.txt:5-6"
- "CMakeLists.txt:43-45"
- "docs/evidence.md:96-100"
- "CMakeLists.txt:33-35"
- "docs/evidence.md:12-20"
- "docs/evidence.md:96-101"
supersedes: "[[Pin CPM dependencies to reviewed commits]]"
tags: ["cmake", "cpm", "dependencies", "supply-chain"]
tier: knowledge
Expand All @@ -21,10 +22,10 @@ relationships:
- type: relates_to
target: "Initialize shared installation defaults before CPM runtime and parser targets"
votes_up: 2
votes_down: 0
last_voted: 2026-11-19T04:10:12Z
votes_down: 1
last_voted: 2026-11-22T00:33:52Z
---

# Pin runtime source with a versioned CPM URI

Pin `cel-runtime` with a CPM URI that includes both the compatibility release (`1.1.3`) and reviewed full commit SHA `fc9fa3be8b0af9782a3491acacd6ba1f2e528a5b`. Keep the release tag-to-commit relationship in `docs/evidence.md`. `cpp-library` resolves the dependency from CPM's registry, so do not add a separate `cpp_library_map_dependency` for this CPM package.
Pin `cel-runtime` with a CPM URI that includes both its compatibility release and the reviewed full commit SHA. `CMakeLists.txt` is the canonical pin; keep its release-to-commit relationship synchronized with `docs/evidence.md` when upgrading. Do not copy a fixed release or SHA from this memory into the build. `cpp-library` resolves the dependency from CPM's registry, so do not add a separate `cpp_library_map_dependency` for this CPM package.
14 changes: 2 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.24)

include(cmake/CPM.cmake)

CPMAddPackage("gh:stlab/cpp-library@6.2.0")
CPMAddPackage("gh:stlab/cpp-library@7.0.0")
include(${cpp-library_SOURCE_DIR}/cpp-library.cmake)

# Enable dependency tracking before project()
Expand Down Expand Up @@ -30,18 +30,8 @@ cpp_library_setup(
DOCS_OPTIONS "USE_MDFILE_AS_MAINPAGE = ${CMAKE_CURRENT_SOURCE_DIR}/README.md"
)

# cpp-library adds src to tests directly and through the static implementation.
get_property(parser_targets DIRECTORY PROPERTY BUILDSYSTEM_TARGETS)
foreach(parser_target IN LISTS parser_targets)
get_target_property(parser_includes "${parser_target}" INCLUDE_DIRECTORIES)
if(parser_includes)
list(REMOVE_ITEM parser_includes "${CMAKE_CURRENT_SOURCE_DIR}/src")
set_property(TARGET "${parser_target}" PROPERTY INCLUDE_DIRECTORIES "${parser_includes}")
endif()
endforeach()

# Initialize cpp-library's default CEL_INSTALL before the same-namespace runtime.
CPMAddPackage("gh:stlab/cel-runtime@1.1.3#fc9fa3be8b0af9782a3491acacd6ba1f2e528a5b")
CPMAddPackage("gh:stlab/cel-runtime@1.1.4#dd93f97ea3658d7e1591062613edc88070517081")
Comment thread
sean-parent marked this conversation as resolved.
Resolved
target_link_libraries(parser PUBLIC cel::runtime)

# Exercise parity-driver helpers in ordinary unit tests without the driver's main().
Expand Down
10 changes: 5 additions & 5 deletions docs/evidence.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pinned to the original baseline.
The runtime source upstream is
[stlab/cel-runtime](https://github.com/stlab/cel-runtime).
The previous P4 baseline used release `v1.0.1` at revision
`a8e753b040664172fd3f526f9cf46029858ff788`. The parser pins release `v1.1.3`
at revision `fc9fa3be8b0af9782a3491acacd6ba1f2e528a5b` because its
`a8e753b040664172fd3f526f9cf46029858ff788`. The parser pins release `v1.1.4`
at revision `dd93f97ea3658d7e1591062613edc88070517081` because its
record-registration API uses the runtime's record adapters. The parser consumes
the public target from CPM and exports the matching minimum package version; it
neither copies runtime implementation nor includes private headers. Rebuild the
Expand Down Expand Up @@ -93,10 +93,10 @@ Production code depends on the C++20 standard library, committed Unicode
property data, and the `cel-runtime` package through `cel::runtime`.
There is no Unicode shared-library dependency.

Build infrastructure uses `stlab/cpp-library` release `v6.2.0` at
`4f60491f7550cb058af855346decc71ce0d5365e` under BSL-1.0. Its pinned scaffold
Build infrastructure uses `stlab/cpp-library` release `v7.0.0` at
`7ba5a0471a780502395d113c44f26254dc58cd65` under BSL-1.0. Its pinned scaffold
provides CMake presets, doctest 2.5.3 (MIT), generated negative-compilation tests,
CTest, guarded in-source tests, static per-file test support,
CTest, guarded in-source tests, production-linked public-contract tests,
standalone public-header checks, exports, license installation, source-build CI,
and strict Doxygen configuration.
Doxygen-awesome-css 2.5.0 (MIT) supplies the documentation theme. CPM.cmake
Expand Down
Loading