Skip to content

Title: Bump nlohmann/json to v3.12.0 (clears stale Python pins flagged by dependency scanners) - #643

Merged
michalpelka merged 1 commit into
MapsHD:mainfrom
adamdbrw:cleanup/json-3.12
Nov 20, 2026
Merged

michalpelka merged 1 commit into
MapsHD:mainfrom
adamdbrw:cleanup/json-3.12

Conversation

@adamdbrw

Copy link
Copy Markdown
Contributor

What

Moves the 3rdparty/json submodule from c920f3f4 (v3.11.2+8, 2022) to 55f93686, the upstream v3.12.0 release tag.
The change is a single gitlink; no HDMapping source changes.

Why

HDMapping only uses json/include, but the vendored 2022 snapshot also carries the json project's own Python tooling
pins, and dependency scanners that recurse into submodules (OSV-Scanner, Trivy, Grype, ...) report them as advisories
against HDMapping:

  • docs/mkdocs/requirements.txt pins 50 packages from mid-2022. Versions with published advisories include
    nltk==3.7, GitPython==3.1.27, tornado==6.2 and urllib3==1.26.11, next to equally old requests==2.28.1,
    certifi==2022.6.15, Jinja2==3.1.2 and idna==3.3.
  • tools/serve_header/requirements.txt pins watchdog==2.1.7 and PyYAML==6.0.

At v3.12.0 the docs file is down to mkdocs and its plugins at current versions (mkdocs==1.6.1,
mkdocs-material==9.6.11, PyYAML==6.0.2, ...); the old pins are gone. None of these files is used by the HDMapping
build; the bump removes them from the dependency surface that scanners see.

v3.12.0 is the current json release and also brings 221 upstream commits of fixes to the header itself.

Moves the vendored header-only json library from v3.11.2+8 (2022) to the v3.12.0 release.
Only json/include is used by the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michalpelka

Copy link
Copy Markdown
Contributor

Need to test it on all platforms

@mwlasiuk mwlasiuk self-assigned this Nov 20, 2026
@mwlasiuk

Copy link
Copy Markdown
Collaborator

Builds fine on Windows 11 and MacoOS. Was not able to build it on Ubuntu 24.04 (errors when building libtbb despite passing CI ...)

@michalpelka

Copy link
Copy Markdown
Contributor

I've tested it today on Ubuntu working with step2.

@michalpelka
michalpelka merged commit 0d374b7 into MapsHD:main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants