Skip to content
Snippets Groups Projects
Unverified Commit de7fdf6c authored by Oliver Smith's avatar Oliver Smith
Browse files

build: package: add warning for cyclical build dep (MR 2388)

Print a warning when breaking cyclical dependencies, for example with
current kde-nightly branch:

> WARNING: cyclical build dependency, building kirigami with binary package of qqc2-desktop-style
parent ed2077bf
No related branches found
No related tags found
1 merge request!2388Properly build outdated dependencies for packages
......@@ -268,9 +268,16 @@ def prioritise_build_queue(disarray: list[BuildQueueItem]) -> list[BuildQueueIte
# If a binary package exists for item, we can queue it
# safely and dep will be queued on a future iteration
if item["has_binary"]:
logging.warning(
f"WARNING: cyclical build dependency: building {item['name']} with binary package of {dep}"
)
queue_item(item)
stuck = False
break
else:
logging.warning(
"WARNING: cyclical build dependency: can't build {item['name']}, no binary package for {dep}"
  • Administrator @root · Imported
    Owner

    Uh, @ollieparanoid did you forget to make this a f-string?

    Also why make an else if you're doing the same thing in the main if statement? Just log outside of the conditional statement entirely :thinking:

    By Bart Ribbers on 2024-09-18T13:27:52

  • Administrator @root · Imported
    Owner

    oh yes, I forgot the f infront of this f-string! fixed in 806d9a39

    Also why make an else if you're doing the same thing in the main if statement?

    The message is slightly different, "building" vs "can't build".

    By Oliver Smith on 2024-09-18T14:34:43

  • Please register or sign in to reply
)
if do_continue:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment