-
-
Notifications
You must be signed in to change notification settings - Fork 404
Absolute paths in package.mill
hinder isolated compilation of nested submodules
#5091
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
Comments
I was thinking about making the top-level package configurable yesterday, e.g. for cases where //| mill-root-package: build.rocket-chip |
Am I correct in understanding that I may configure the top-level package as either If relative paths are not acceptable, is it possible to define all the modules in the root directory? |
@Yan-Muzi it is possible to define all the modules in the root directory |
If all the modules can be defined in the root directory, then it is the root directory that worries about its submodules instead of otherwise. This seems better because a git repository has all the information of its submodules, while it is unaware of how it will be used in other repositories as submodule. For example, in a repository with nested submodules like this:
|
@Yan-Muzi got it. I think we may have some sanity-check assertions that yell at you if you have a |
Looking back on #3426, I found this:
Optional package declarations should solve this issue elegantly! Looking forward to this new feature. |
The package declaration requirements introduced in Mill 0.12.x (#3426) create conflicts in projects with nested submodules that need to function both as project dependencies and standalone components.
Take XiangShan as an example. We have a submodule
rocket-chip
, which containscde
as its submodule. Whencde
is used in XianShan,cde
directory requirespackage build.rocket-chip.cde
. However, when we want to developrocket-chip
independently, the samecde
directory now requirespackage build.cde
.Is there any ways to fix or bypass this?
The text was updated successfully, but these errors were encountered: