Skip to content

fix(publish-cvcpkg): install pydantic alongside cvcpkg - #106

Closed
transfix wants to merge 1 commit into
masterfrom
fix/publish-needs-pydantic
Closed

transfix wants to merge 1 commit into
masterfrom
fix/publish-needs-pydantic

Conversation

@transfix

Copy link
Copy Markdown
Owner

First real publish run failed fleet-wide at the Publish step: cvcpkg publish --org crashes with ModuleNotFoundError: pydantic — the org-slug validation lazily imports cvcpkg.server.models (cli/_helpers.py:141), whose module-level pydantic import belongs to the server extra. Dry-runs never caught it (publish step skipped).

One-word workflow fix: install pydantic alongside cvcpkg. Proper upstream fix (relocating validate_org_slug to a dependency-free module) is being PR'd to libcvc-deps; this line can be dropped after it lands. Publishes were re-dispatched from this branch to unblock.

cvcpkg publish --org crashes with ModuleNotFoundError: pydantic — the org
slug validation lazily imports cvcpkg.server.models, whose module-level
pydantic import belongs to the server extra. Install pydantic explicitly
until the upstream fix (relocating validate_org_slug to a dependency-free
module) lands in libcvc-deps.
@transfix

Copy link
Copy Markdown
Owner Author

Superseded: the root fix landed upstream (transfix/libcvc-deps#270 — validate_org_slug relocated to dependency-free cvcpkg.orgs), so every cvcpkg install stops needing pydantic regardless of which interpreter it lands in (the quickfix missed the composite action's second cvcpkg install in the setup-python toolcache). Publishes re-dispatched from master.

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.

1 participant