Previously, the set more_pkgs in function main_may_raise can be updated during iteration, which leads to RuntimeError and crashes lilac. The bug can be triggered when a package with update_on_build specified in lilac.yaml is referenced in another update_on_build array. This PR is a minimal refactor to fix the issue.
Previously, the set
more_pkgs
in functionmain_may_raise
can be updated during iteration, which leads toRuntimeError
and crashes lilac. The bug can be triggered when a package withupdate_on_build
specified in lilac.yaml is referenced in anotherupdate_on_build
array. This PR is a minimal refactor to fix the issue.