cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.6k stars 3.71k forks source link

bazel: updating the `nogo` config invalidates the entire cache #79928

Open rickystewart opened 2 years ago

rickystewart commented 2 years ago

The config is built into the toolchain that Bazel uses to build the Go code, so updating the nogo config at all rebuilds the entire toolchain and invalidates the cache for all Go code.

We don't use nogo on third-party code so any time recompiling the vendored dependencies is completely wasted. Meanwhile some updates to the nogo config may not require any recompilation of the first-party code at all -- ideally only what is "necessary" would be invalidated in our cache.

Jira issue: CRDB-15723

Epic CRDB-17171

github-actions[bot] commented 2 months ago

We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!