Multiple directories with same name
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Review the linked fork branch and the existing add_package implementation, then inspect tests under tests/unit/ to find where package discovery is covered. First reproduce the duplicate directory name case and check how the proposed path argument selects a vunit_pkg.toml. Done means the behavior and its tests are clear and the unit test suite runs; the issue reports that pytest currently fails on both master and the branch.
由索引模型根据 Issue 内容生成。
描述
I have a problem with directories with the same name, and proposed a solution.
Our directory structure:
project_root
├── generallib
│ ├── rtl
│ ├── sim
│ └── tb
└── specific
├── comp1
│ ├── rtl
│ ├── sim
│ └── tb
└── comp2
├── rtl
├── sim
└── tb
The issue is regarding directories containg vunit_pkg.toml.
rtlandtbfolders containsvunit_pkg.toml.simfolders containsrun.py
Normal python import handles __init__.py fine via:
import comp1
import comp1.rtl
import comp1.tb
I have created a branch (on my forked repo):
https://github.com/VUnit/vunit/compare/master...mrlogic-dk:vunit:feature-add_package-via_path
Problem solved by this patch:
- Multiple packages with the same directory name, e.g.
rtl/tb.- Original
add_package("package_name")will just insert the first found. - Enhanced package, with `path` argument,
add_package(path"../../general-lib/tb")= will insert that
specific package viavunit_pkg.toml
- Original
Whot do you think about the change with respect to functionality and implementation?
I can't run the test `pytest tests/unit/` neither on `master` or with my changes.
I don't know where to add test to test the behaviour.
I can't push to VUnit/vunit.
- 主要语言
- VHDL
- 星标
- 850
- 派生
- 305
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
VUnit/vunit 的其他 Issue
-
KeyError in test scheduler when using TestBench.scan_tests_from_file()可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
GHDL: generics leak between configurations when `ghdl.sim_flags` is set可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
AXI slave VCs have identical stalling behavior可能已有人在做 @Lay007 于 28 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
NanmiCoder/dsh-agent-teams#277 ·
维护者通常 1 天内回复
-
random_elements(unique=True) on an OrderedDict: ZeroDivisionError once only zero weights remain, AssertionError with use_weighting=False可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 13 天内回复
-
bug ci good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positives未关闭
难度 2/5 1-3 小时 新手友好度 78/100
githubnext/gh-aw-workshop#4943 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
EclipseFdn/open-vsx.org#14671 · 1 条评论 ·
维护者通常 1 天内回复