Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Oct 23, 2024
1 parent 87c3cb5 commit 9e2a8ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,22 @@ jobs:
OUTPUT_DIR="${AFTER}"
git ls-files -- '*.go' | grep -v '\(^\|/\)\(internal\|examples\|benchmark\|interop\|test\|testdata\)\(/\|$\)' | xargs dirname | sort -u | while read d; do
pushd "$d"
pushd "$d" > /dev/null
pkg="$(echo "$d" | sed 's;\.;grpc;' | sed 's;/;_;g')"
go list -deps . | sort > "${OUTPUT_DIR}/$pkg"
popd
popd > /dev/null
done
git checkout origin/master
OUTPUT_DIR="${BEFORE}"
git ls-files -- '*.go' | grep -v '\(^\|/\)\(internal\|examples\|benchmark\|interop\|test\|testdata\)\(/\|$\)' | xargs dirname | sort -u | while read d; do
pushd "$d"
pushd "$d" > /dev/null
pkg="$(echo "$d" | sed 's;\.;grpc;' | sed 's;/;_;g')"
go list -deps . | sort > "${OUTPUT_DIR}/$pkg"
popd
popd > /dev/null
done
diff --recursive "${BEFORE}" "${AFTER}" || exit 1
echo "Comparing dependencies..."
# Run grep in a sub-shell since bash does not support ! in the middle of a pipe
diff -u0 -r "${BEFORE}" "${AFTER}" | bash -c '! grep -v "@@"'
1 change: 1 addition & 0 deletions encoding/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"strings"

"google.golang.org/grpc/internal/grpcutil"
_ "google.golang.org/grpc/status"

Check failure on line 33 in encoding/encoding.go

View workflow job for this annotation

GitHub Actions / tests (vet, 1.22)

a blank import should be only in a main or test package, or have a comment justifying it https://revive.run/r#blank-imports
)

// Identity specifies the optional encoding for uncompressed streams.
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ OUTPUT_DIR="$1"
cd "${SCRIPTS_DIR}/.."

git ls-files -- '*.go' | grep -v '\(^\|/\)\(internal\|examples\|benchmark\|interop\|test\|testdata\)\(/\|$\)' | xargs dirname | sort -u | while read d; do
pushd "$d"
pushd "$d" > /dev/null
pkg="$(echo "$d" | sed 's;\.;grpc;' | sed 's;/;_;g')"
go list -deps . | sort >| "${OUTPUT_DIR}/$pkg"
popd
popd > /dev/null
done

0 comments on commit 9e2a8ad

Please sign in to comment.