[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mina Workspace Workflow #21

Open
GreyElaina opened this issue Feb 6, 2024 · 2 comments
Open

Mina Workspace Workflow #21

GreyElaina opened this issue Feb 6, 2024 · 2 comments

Comments

@GreyElaina
Copy link
Owner
GreyElaina commented Feb 6, 2024

目前的 mina-buildpdm-backend 的 hook 特性实现,并舍弃了之前共享同一个 workspace dependencies 的方法。这带来了额外的工作流步骤,需要通过改善 pdm-mina 实现。
目前不考虑对其他包管理器的支持。

  • 支持通过 dev-dependencies = ["-e file://${PROJECT_ROOT}/#egg=<package>"] 指定 workspace 中对分包的依赖。
  • 通过自动声明分包的 dev-dependencies,覆盖 dependencies 中工作区其他分包的依赖引用(可配置开关)。
  • pdm [add,update,...] 等一系列与依赖管理相关的 pdm 指令,通过提供额外参数或控制台提示,从而使管理分包依赖更方便。(待定)
  • 尽可能不对 mina-build 作进一步修改。
  • 尽可能不对 pdm 本体做侵入性的修改(除非必要)
  • 使用 .mina/workspace.toml 存储当前工作流的信息,使用 .mina/.gitignore 忽略其修改。
@GreyElaina
Copy link
Owner Author

额啊……还得重写一份 README。

@GreyElaina
Copy link
Owner Author

经过对 pdm 代码的阅读,无法通过现有的实现处理/劫持分包间修改,如果不用一些非常非常恶心的方法的话。

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

No branches or pull requests

1 participant