github.com/please-build/puku@v1.7.3-0.20240516143641-f7d7f4941f57/knownimports/BUILD (about) 1 root = f"third_party/go/toolchain/pkg/{CONFIG.OS}_{CONFIG.ARCH}" 2 genrule( 3 name = "go_root_packages", 4 srcs = ["//third_party/go:toolchain"], 5 cmd = f'find {root} -name "*.a" | sed -e s=^{root}/== | sed -e s="\.a\$"== > $OUT', 6 outs = ["go_root_packages"], 7 ) 8 9 go_library( 10 name = "knownimports", 11 srcs = ["known_imports.go"], 12 resources = [":go_root_packages"], 13 visibility = [ 14 "//generate:all", 15 ], 16 )