Skip to content

Commit 2e08efe

Browse files
authored
Rename repo, add bcr boilerplate (#12)
* Rename repo, add bcr boilerplate * Temp disable repo cache
1 parent fe073d7 commit 2e08efe

File tree

35 files changed

+89
-83
lines changed

35 files changed

+89
-83
lines changed

.bcr/metadata.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"homepage": "https://github.com/stackb/bazel-aquery-differ",
2+
"homepage": "https://github.com/stackb/bazel_difftools",
33
"maintainers": [
44
{
55
"name": "Paul Cody",
@@ -8,7 +8,7 @@
88
}
99
],
1010
"repository": [
11-
"github:stackb/bazel-aquery-differ"
11+
"github:stackb/bazel_difftools"
1212
],
1313
"versions": [],
1414
"yanked_versions": {}

.github/workflows/ci.bazelrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ build --announce_rc
55
# though it makes the log noisier.
66
test --test_output=errors
77

8-
# Use remote cache instance
9-
build:cas --remote_instance_name=main
10-
build:cas --remote_cache=grpc://cas.stack.build:50051
8+
# This directory is configured in GitHub actions to be persisted between runs.
9+
build --disk_cache=$HOME/.cache/bazel
10+
build --repository_cache=$HOME/.cache/bazel-repo
11+
build --repo_contents_cache=
12+
13+
# Allows tests to run bazelisk-in-bazel, since this is the cache folder used
14+
test --test_env=XDG_CACHE_HOME

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
with:
2222
# Avoid downloading Bazel every time.
2323
bazelisk-cache: true
24+
# Store build cache per workflow.
25+
disk-cache: true
26+
# Share repository cache between workflows.
27+
repository-cache: true
2428
- name: bazel build
2529
run: >-
2630
bazelisk

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
# uses: ./.github/workflows/release_ruleset.yaml # copied-from: bazel-contrib/.github/.github/workflows/[email protected]
2525
with:
2626
prerelease: false
27-
release_files: rules_proto-*.tar.gz
27+
release_files: bazel_difftools-*.tar.gz
2828
tag_name: ${{ inputs.tag_name || github.ref_name }}
29-
secrets:
30-
inherit
29+
secrets: inherit
3130
publish:
3231
needs: release
3332
uses: ./.github/workflows/publish.yaml

.github/workflows/release_prep.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readonly TAG=$1
99
# The prefix is chosen to match what GitHub generates for source archives.
1010
# This guarantees that users can easily switch from a released artifact to a source archive
1111
# with minimal differences in their code (e.g. strip_prefix remains the same)
12-
readonly PREFIX="bazel-aquery-differ-${TAG}"
12+
readonly PREFIX="bazel_difftools-${TAG}"
1313
readonly ARCHIVE="${PREFIX}.tar.gz"
1414

1515
# NB: configuration for 'git archive' is in /.gitattributes
@@ -23,6 +23,6 @@ cat << EOF
2323
Add to your \`MODULE.bazel\` file:
2424
2525
\`\`\`starlark
26-
bazel_dep(name = "bazel-aquery-differ", version = "${TAG}")
26+
bazel_dep(name = "bazel_difftools", version = "${TAG}")
2727
\`\`\`
2828
EOF

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ load("@gazelle//:def.bzl", "gazelle_binary")
1010
# gazelle:resolve go go github.com/stackb/rules_proto/pkg/protoc @build_stack_rules_proto//pkg/protoc
1111

1212
# -- Gazelle language "go" ---
13-
# gazelle:prefix github.com/stackb/bazel-aquery-differ
13+
# gazelle:prefix github.com/stackb/bazel_difftools
1414
# gazelle:go_generate_proto false
1515

1616
# -- Gazelle language "protobuf" ---

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module(
2-
name = "bazel-aquery-differ",
2+
name = "bazel_difftools",
33
version = "0.0.0",
44
)
55

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![CI](https://github.com/stackb/bazel-aquery-differ/actions/workflows/ci.yaml/badge.svg)](https://github.com/stackb/bazel-aquery-differ/actions/workflows/ci.yaml)
1+
[![CI](https://github.com/stackb/bazel_difftools/actions/workflows/ci.yaml/badge.svg)](https://github.com/stackb/bazel_difftools/actions/workflows/ci.yaml)
22

3-
# bazel-aquery-differ
3+
# bazel_difftools
44

55
A tool to compare Bazel action query outputs with an interactive HTML report.
66
This is a re-imagination of the [Bazel
@@ -22,7 +22,7 @@ in Go with enhanced visualization features.
2222
Add to your `MODULE.bazel`:
2323

2424
```starlark
25-
bazel_dep(name = "bazel-aquery-differ", version = "0.0.0")
25+
bazel_dep(name = "bazel_difftools", version = "0.0.0")
2626
```
2727

2828
> **Note**: This module is not yet published to the Bazel Central Registry. For
@@ -33,8 +33,8 @@ bazel_dep(name = "bazel-aquery-differ", version = "0.0.0")
3333
Download a release artifact, or build from source:
3434

3535
```bash
36-
git clone https://github.com/stackb/bazel-aquery-differ.git
37-
cd bazel-aquery-differ
36+
git clone https://github.com/stackb/bazel_difftools.git
37+
cd bazel_difftools
3838
bazel build //cmd/aquerydiff
3939
```
4040

@@ -45,7 +45,7 @@ bazel build //cmd/aquerydiff
4545
Load the rules in your `BUILD.bazel` file:
4646

4747
```starlark
48-
load("@bazel-aquery-differ//rules:defs.bzl", "aquery_diff", "aquery_git_diff")
48+
load("@bazel_difftools//rules:defs.bzl", "aquery_diff", "aquery_git_diff")
4949
```
5050

5151
#### Rule: `aquery_diff`

WORKSPACE

Whitespace-only changes.

build/stack/bazel/aquery/differ/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ proto_compiled_sources(
1919
"Msrc/main/protobuf/build.proto=github.com/bazelbuild/bazelapis/src/main/protobuf/build",
2020
"Msrc/main/protobuf/stardoc_output.proto=github.com/bazelbuild/bazel/src/main/protobuf/stardoc_output",
2121
]},
22-
output_mappings = ["action.pb.go=github.com/stackb/bazel-aquery-differ/build/stack/bazel/aquery/differ/action.pb.go"],
22+
output_mappings = ["action.pb.go=github.com/stackb/bazel_difftools/build/stack/bazel/aquery/differ/action.pb.go"],
2323
plugins = ["@build_stack_rules_proto//plugin/golang/protobuf:protoc-gen-go"],
2424
proto = "differ_proto",
2525
visibility = ["//visibility:public"],
@@ -28,7 +28,7 @@ proto_compiled_sources(
2828
go_library(
2929
name = "differ",
3030
srcs = ["action.pb.go"],
31-
importpath = "github.com/stackb/bazel-aquery-differ/build/stack/bazel/aquery/differ",
31+
importpath = "github.com/stackb/bazel_difftools/build/stack/bazel/aquery/differ",
3232
visibility = ["//visibility:public"],
3333
deps = [
3434
"@bazelapis//src/main/protobuf:analysis_v2_go_proto",

0 commit comments

Comments
 (0)