Resolve docker hiccups around regexp build by ahouseholder · Pull Request #1101 · CERTCC/SSVC
and others added 5 commits
February 19, 2026 16:41* add abnf-to-regexp as requirement * split namespace_patterns.py out from patterns.py as file that can be generated fully
* add Makefile rule * add autogeneration warning to namespace_patterns.py resolve #899
… namespace_patterns.py - Move abnf-to-regexp from runtime to dev dependency group in pyproject.toml - Replace dynamic ABNF parsing in patterns.py with static import from namespace_patterns.py (no runtime dependency on abnf-to-regexp) - Add namespace_patterns.py with pre-generated static regex patterns - Add Makefile rule to regenerate namespace_patterns.py from ABNF source - Add --no-dev to 'uv sync --frozen' in Dockerfile dependencies stage so abnf-to-regexp (and its sdist-only regex==2021.4.4 dep) are not installed in production images - Add gcc+libc-dev to test stage for compiling regex when running dev sync Fixes docker-compose --project-directory docker build --no-cache Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings
March 27, 2026 18:21
ahouseholder
changed the title
Maybe fix 1067 with 1065
Resolve docker hiccups around regexp build
- Create separate 'codegen' dependency group for abnf-to-regexp so that 'uv sync --frozen --dev' in the test Docker stage does NOT pull in abnf-to-regexp (and its sdist-only regex==2021.4.4 dependency that requires gcc to build) - Update uv.lock to reflect codegen group membership - Remove gcc/libc6-dev from test Docker stage (no longer needed) - Add --no-sync to all 'uv run' CMD instructions in Dockerfile so containers don't re-sync on startup (which would pull dev/codegen deps) - Update Makefile to invoke abnf-to-regexp via --group codegen Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced
Mar 30, 2026This 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