fork of https://github.com/sourcegraph/zoekt
1#!/usr/bin/env bash
2
3cd "$(dirname "${BASH_SOURCE[0]}")/../.."
4set -euo pipefail
5
6find . -name "buf.yaml" -not -path ".git" | while read -r buf_yaml; do
7 pushd "$(dirname "${buf_yaml}")" >/dev/null
8
9 if ! buf lint .; then
10 echo "running buf lint on ${buf_yaml} failed, please examine the output and fix the issues"
11 exit 1
12 fi
13
14 popd >/dev/null
15done