rules_swift_package_manager icon indicating copy to clipboard operation
rules_swift_package_manager copied to clipboard

False positive when running update_build_files

Open dirtyhabits97 opened this issue 10 months ago • 0 comments

Just ran into this very particular case, where running bazel run //:update_build_files results in some warnings:

gazelle: Unable to find dependency labels for s, sCount, sFormat, sOffset, s_count, s_format, s_offset
gazelle: Unable to find dependency labels for MachO, s, sCount, sFormat, sOffset, s_count, s_format, s_offset
gazelle: Unable to find dependency labels for s
Screenshot 2024-04-17 at 19 58 05

This is because some of the variable names in my project start with import. Example: Screenshot 2024-04-17 at 19 59 31

I assume the command tries to look for the dependency sFormat because it splits importsFormat into import sFormat.

Not that big of a deal, since the command returns a successful exit code and this is an uncommon scenario

dirtyhabits97 avatar Apr 18 '24 01:04 dirtyhabits97