Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: symlink everything under lib/ when using local SDK #3074

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

irfansharif
Copy link
Contributor

@irfansharif irfansharif commented Feb 22, 2022

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.

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

See commit message.

Which issues(s) does this PR fix?

No filed issue.

Other notes for review

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
@linzhp linzhp merged commit 8553d97 into bazelbuild:master Mar 15, 2022
@irfansharif irfansharif deleted the 220222.local-sdk-lib branch April 12, 2022 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants