Repository navigation
with get: mbedtls 3.6 fallback, option pins, and per-platform lock (#2757) - #3652
Merged
Merged
Conversation
ehartford
force-pushed
the
tls-backend-2757
branch
from
November 27, 2026 10:50
40220fe to
368ca77
Compare
Contributor
Author
|
Seed-driven battery verdict on
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2757
Implements Eric's 2026-11-25 ruling on #2757 (Option 1 —
mbedtlswhereopensslcannot be built, with all three conditions):Per-platform backend recorded in
.with/lock.json:with_ssleven when default, so macOS records"macos-aarch64": "with_ssl=openssl"whilelinux-aarch64records"linux-aarch64": "with_ssl=mbedtls") are written tometadata.json("options") and merged per platform under"options"in.with/lock.json.with get) and updates (with get c.libcurl) preserve other platforms' entries, report the exact platform difference, and skip another platform's transitivec.opensslbinary when the current platform switched TLS backends.User option pinning (no silent substitution):
[deps.options.c.<name>]inwith.tomlandwith get --option key=value c.<name>pin Conan recipe options (validated against the recipe's declaredoptionschoices).with_ssl = "openssl"never substitutesmbedtls— on platforms whereopensslhas neither a binary nor a CMake build (linux-aarch64, or--from-source), it refuses with the existing error.mbedtlsmoved off3.5.0onto the3.6LTS line:mbedtls/3.5.0(Conan Center'slibcurlpin),conan_adjust_requirement_versionresolves[>=3.6 <4](3.6.8), matchingwith get c.mbedtls.UAT & docs:
#1166linux-aarch64platform restriction inuat/libcurl.uat(platforms: darwin, linux), updatesuat/README.md,uat/first-hour/post-json.md, and documents[deps.options.c.<name>]/--option/ per-platform lock options indocs/spec/toolchain/package-management.md.Verification
test/internals/conan_tls_backend_test.with(+ existing lock/recipe/conan internals tests) pass.macos-aarch64):with uat libcurl: pass (7 steps), locks"macos-aarch64": "with_ssl=openssl".with get --from-source --option with_ssl=openssl c.libcurl: refuses cleanly without substitution.with get --from-source c.libcurl: falls back towith_ssl=mbedtls, buildsmbedtls/3.6.8+libcurl/8.23.0, and passeslibcurl_main.with.linux-aarch64,with-aarch64-bare:latest, no host cmake/ninja/gcc/clang):with uat libcurl: pass (7 steps, 148.7s), buildsmbedtls/3.6.8+libcurl/8.23.0, locks"linux-aarch64": "with_ssl=mbedtls".with get --option with_ssl=openssl c.libcurl: refuses cleanly without substitution..with/lock.json: prints the platform difference, skips macOS's transitivec.opensslbinary, and merges both"linux-aarch64": "with_ssl=mbedtls"and"macos-aarch64": "with_ssl=openssl".Draft until the seed-driven battery verdict is posted.