-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation for cycle references. #3238
base: main
Are you sure you want to change the base?
Conversation
PR HealthBreaking changes ✔️
Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. Coverage ✔️
This check for test coverage is informational (issues shown here will not fail the PR). API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for following up w/ a CI check! 2-3 comments
|
||
cd $TOOL_DIR/.. | ||
dart pub global activate layerlens | ||
layerlens --path . --fail-on-cycles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can layerlens
take a param for which directory to operate on? If so, that would allow us to avoid two cd
commands.
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# Runs `analyze` for all code in the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this file comment or update it to reference that this script looks for dep cycles.
@@ -0,0 +1,18 @@ | |||
#!/bin/bash | |||
|
|||
# Copyright 2023 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright 2023 The Chromium Authors. All rights reserved. | |
# Copyright 2025 The Chromium Authors. All rights reserved. |
Follow up on #3232 (review)
The validation failure looks like this: https://github.com/dart-lang/dart-pad/actions/runs/14295720581/job/40062605772?pr=3239