Skip to content

Commit

Permalink
IDX-2883 - Move the buf check compabilities to use the upstream versi…
Browse files Browse the repository at this point in the history
…on without bazel
  • Loading branch information
Enzo Desiage committed Jun 14, 2023
1 parent 3436ee7 commit 25eca9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 47 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ repos:
(?x)^(
testnet/tests/.*|.*/docker-compose.yml|testnet/env/shared-config\.yml
)$
- repo: https://github.com/bufbuild/buf
rev: v1.21.0
hooks:
- id: buf-breaking
entry: buf breaking --config buf.yaml --against '.git#branch=master'
25 changes: 0 additions & 25 deletions pre-commit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,6 @@ sh_test(
],
)

sh_test(
name = "buf-check-incompabilities",
size = "small",
srcs = ["buf-check-incompabilities.sh"],
data = [
"//:WORKSPACE.bazel",
"//:buf.yaml",
"@buf",
],
env = {
# Hack to escape the sandbox and grep on the actual repository
"WORKSPACE": "$(rootpath //:WORKSPACE.bazel)",
"BUF_PATH": "$(rootpath @buf//:buf)",
"BUF_CONFIG": "$(rootpath //:buf.yaml)",
},
env_inherit = [
"CI",
],
tags = [
"external", # force test to be unconditionally executed.
"local", # precludes the action or test from being remotely cached, remotely executed, or run inside the sandbox.
"smoke", # it should be run before committing code changes into the version control system.
],
)

sh_test(
name = "shellcheck",
size = "small",
Expand Down
22 changes: 0 additions & 22 deletions pre-commit/buf-check-incompabilities.sh

This file was deleted.

0 comments on commit 25eca9a

Please sign in to comment.