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 2bce84c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ 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
diff -u0 --recursive "${BEFORE}" "${AFTER}" | grep -v '@@'
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 2bce84c

Please sign in to comment.