Skip to content

Commit 8553d97

Browse files
authored
sdk: symlink everything under lib/ when using local SDK (#3074)
We rely on the packaged zoneinfo zip in CRDB, found under lib/time/zoneinfo.zip. When using the remote SDK macro, we untar the entire archive into the sandbox. When pointing to a local SDK however, we previously ignored everything under lib. It feels reasonable to also symlink lib/ into the sandbox given they have valid symbols to build against. We needed this patch in order to build CRDB with local go installations. +cc cockroachdb/cockroach#56178
1 parent b682cd0 commit 8553d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/private/sdk.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _remote_sdk(ctx, urls, strip_prefix, sha256):
219219
)
220220

221221
def _local_sdk(ctx, path):
222-
for entry in ["src", "pkg", "bin"]:
222+
for entry in ["src", "pkg", "bin", "lib"]:
223223
ctx.symlink(path + "/" + entry, entry)
224224

225225
def _sdk_build_file(ctx, platform):

0 commit comments

Comments
 (0)