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

Add Riviera's global libs as builtin libraries #374

Merged
merged 6 commits into from
Aug 16, 2018

Conversation

pkorpine
Copy link
Contributor

No description provided.

"""
mapped_libraries = self._get_mapped_libraries()
for library_name in mapped_libraries:
if not project.has_library(library_name):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A spot a potential problem here.

  1. Consider if the user adds a library lib2 to their run.py file and runs once. The library will be added to library.cfg and will not be considered a built-in library.

  2. The user removes lib2 from their run.py and runs again. vlist will read library.cfg and discover lib2 which will be added as a built-in library. This means any references to lib2 will be ignored by VUnit instead of flagged as errors which it should since the library is not there anymore.

The possible solution would maybe be a bit out of scope of this PR. But I think that the RiviveraProInterface should not depend on the state of the library.cfg file in the form of reading it but rather always overwrite it regardless of what was there before. The built-in libraries can be discovered by running vlist without any library.cfg which will just show the built-in libraries.

@kraigher kraigher merged commit bd0020d into VUnit:master Aug 16, 2018
@pkorpine pkorpine deleted the riviera_global_libs branch August 17, 2018 06:03
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

Successfully merging this pull request may close these issues.

2 participants