We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a7745 commit 9d9b3c2Copy full SHA for 9d9b3c2
build/scripts/go_tool.py
@@ -75,8 +75,14 @@ def preprocess_args(args):
75
args.output_root = os.path.normpath(args.output_root)
76
args.import_map = {}
77
args.module_map = {}
78
+
79
+ def is_valid_cgo_peer(peer):
80
+ if peer.endswith('.fake.pkg') or peer.endswith('.fake'):
81
+ return False
82
+ return True
83
84
if args.cgo_peers:
- args.cgo_peers = [x for x in args.cgo_peers if not x.endswith('.fake.pkg')]
85
+ args.cgo_peers = list(filter(is_valid_cgo_peer, args.cgo_peers))
86
87
srcs = []
88
for f in args.srcs:
0 commit comments