Skip to content

[cr checker] fix symlink resolution#365

Open
hoe-jo wants to merge 1 commit into
mainfrom
joho_fix_cr_checker_symlinks
Open

[cr checker] fix symlink resolution#365
hoe-jo wants to merge 1 commit into
mainfrom
joho_fix_cr_checker_symlinks

Conversation

@hoe-jo

@hoe-jo hoe-jo commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cr_checker/cr_checker.bzl
Comment on lines +24 to +27
label = native.package_relative_label(src)
if str(label.workspace_root):
fail("copyright_checker: srcs must be main-repo labels, got: {}".format(src))
return label.package + "/" + label.name if label.package else label.name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This assumes that a target ends up pointing to files that have a name starting similar as the target. This is often true but not nearly always...

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