bazel-contrib / rules-template

A template for creating a new Bazel ruleset
Apache License 2.0
75 stars 20 forks source link

Remove the Bazel repository cache #80

Closed aherrmann closed 1 year ago

aherrmann commented 1 year ago

Closes https://github.com/bazel-contrib/rules-template/issues/76 Depends on https://github.com/bazel-contrib/.github/pull/7

Disables the Bazel repository cache. See #76 for motivation.

TODO

alexeagle commented 1 year ago

FWIW, at Aspect we have been blindly using this setup for our OSS rules without having done the analysis you did here, thanks!

However we'll switch ours to https://docs.aspect.build/v/workflows sometime soon, which has a much more sophisticated approach for persisting and restoring the repository cache (as well as the external/* folders created by repository rule execution)

aherrmann commented 1 year ago

I don't seem to have the required permissions to create a new v4 release tag on https://github.com/bazel-contrib/.github. So, I've referenced the commit hash instead.