Skip to content

Commit

Permalink
Merge pull request #515 from PolyJIT/simbuerg/fix-no-warning-on-empty…
Browse files Browse the repository at this point in the history
…-container-decl

feat(environments): warn the user that a project enumeration skipped a project
  • Loading branch information
simbuerg authored Nov 8, 2022
2 parents 14ff152 + 59c3b42 commit 6323d77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions benchbuild/environments/entrypoints/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@ def enumerate_projects(
prj = prj_class(context)
if prj.container:
yield prj
else:
version = make_version_tag(prj.revision)
image_tag = make_image_name(
f'{prj.name}/{prj.group}', version
)

rich.get_console().print(
f"Skipping empty container image declaration for: {image_tag}"
)


def make_version_tag(revision: source.Revision) -> str:
Expand Down

0 comments on commit 6323d77

Please sign in to comment.