Skip to content

Report effective package source overrides - #28

Merged
caoergou merged 3 commits into
mainfrom
codex/issue-27-effective-config
Sep 11, 2026
Merged

caoergou merged 3 commits into
mainfrom
codex/issue-27-effective-config

Conversation

@caoergou

Copy link
Copy Markdown
Owner

Package source settings written by cnpip could be silently superseded by environment variables or project-level configuration, leaving info unable to explain the effective behavior.

This change:

  • reports source-related environment variables for pip, uv, PDM, and Conda, with credentials redacted;
  • discovers uv and PDM project configuration that can override or extend user-level settings;
  • reads Conda's effective channel configuration through the Conda CLI;
  • shows override diagnostics in both cnpip info and cnpip list, and warns after set when a higher-precedence setting remains;
  • keeps PDM ownership and rollback checks independent of PDM_PYPI_URL;
  • documents precedence, extra-index behavior, requirements-file sources, and uv lockfile implications.

Validation:

  • ruff check .
  • ruff format --check .
  • pyright
  • pytest -q (176 passed, 1 skipped)
  • isolated real-PDM tests (2 passed)
  • uv build --out-dir /tmp/cnpip-issue27-dist

Closes #27

@caoergou
caoergou merged commit 0d103a9 into main Sep 11, 2026
14 checks passed
@caoergou caoergou mentioned this pull request Sep 11, 2026
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.

uv 配置会被环境变量静默绕过,且后果经 uv.lock 固化到团队与 CI

1 participant