From 6b91a38b5105b634860f38ec8b7855879fb618d7 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Wed, 30 Nov 2022 02:17:06 +0000 Subject: [PATCH] Add the symlinks of the external repository in api_bp2build workspace Unlike bp2build, api_bp2build depends on a well-defined subset of checked-in BUILD/bzl files, and we create symlinks for that subsset in out/soong/api_bp2build. Since we now cd into the workspace after aosp/2308141, we need to add the sylimks of the external repositories as well Test: bazel build --config=api_bp2build //:empty Change-Id: Ia7ecc5543226893a3878bc0fd35e025a37c80413 --- cmd/soong_build/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go index bc2d5cb07..0599ad9e2 100644 --- a/cmd/soong_build/main.go +++ b/cmd/soong_build/main.go @@ -276,6 +276,7 @@ func apiBuildFileExcludes() []string { src != "BUILD" && src != "BUILD.bazel" && !strings.HasPrefix(src, "build/bazel") && + !strings.HasPrefix(src, "external/bazel-skylib") && !strings.HasPrefix(src, "prebuilts/clang") { ret = append(ret, src) }