Skip to content

Commit

Permalink
hotfix: check if a library is available in any variant (not all)
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed May 7, 2024
1 parent 655447b commit 13ccef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion volare/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "0.16.2"
__version__ = "0.16.3"

if __name__ == "__main__":
print(__version__, end="")
7 changes: 5 additions & 2 deletions volare/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,13 @@ def fetch(
for library in library_set:
if library not in pdk_family.all_libraries:
raise RuntimeError(f"Unknown library {library}.")
found = False
for variant in variants:
lib_path = os.path.join(version_directory, variant, "libs.ref", library)
if not os.path.isdir(lib_path):
missing_libraries.add(library)
if os.path.isdir(lib_path):
found = True
if not found:
missing_libraries.add(library)

affected_paths = []
if len(missing_libraries) != 0 or common_missing:
Expand Down

0 comments on commit 13ccef8

Please sign in to comment.