Skip to content

database选择postgres,本地执行uv sync --extra postgres,每次执行make dev都需要重新安装postgres依赖 #2754

Description

@pangzhili

因为 postgres 在这个项目里被定义成“可选依赖(extra)”,而 make dev 每次启动前都会执行一次普通的 uv sync,普通 uv sync 不会保留你之前手动装的 --extra postgres。

项目启动脚本 make dev 在启动前执行的是:uv sync
每次手动装完 Postgres 相关依赖后,下一次 make dev 又会把环境同步回“默认依赖集合”,导致 postgres extra 不再保留。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions