Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Multiple directories with same name

Abierto
#1,197 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

  • rtl and tb folders contains vunit_pkg.toml.
  • sim folders contains run.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 via vunit_pkg.toml

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.

Lenguaje dominante
VHDL
Estrellas
850
Forks
305
Merge medio
2 d 10 h
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de VUnit/vunit

Todos los issues de VUnit/vunit

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.