Skip to content

introduce CheckCycle to detect cycles in project's depends_on#602

Merged
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:cycle_detection
Mar 18, 2024
Merged

introduce CheckCycle to detect cycles in project's depends_on#602
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:cycle_detection

Conversation

@ndeloof
Copy link
Copy Markdown
Collaborator

@ndeloof ndeloof commented Mar 18, 2024

fix: cycle detection was ran for each and every service in project, not once per project 😅
also introduced a more explicit way to use the graph logic to search for cycles, vs running a no-op "in dependency order", where cycle detection is just an implementation detail

see docker/compose#11437

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested a review from glours March 18, 2024 14:20
Copy link
Copy Markdown
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

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

🙏

@ndeloof ndeloof merged commit b0f3901 into compose-spec:main Mar 18, 2024
@ndeloof ndeloof deleted the cycle_detection branch March 18, 2024 16:00
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