refactor: remove x/exp dep (backport #21281) (#21358)

This commit is contained in:
mergify[bot]
2024-08-19 15:46:41 +00:00
committed by GitHub
parent 9f13c18515
commit 3285de7f6c
32 changed files with 137 additions and 134 deletions
+6
View File
@@ -22,6 +22,7 @@ done
# no runtime/v2 or server/v2 imports in x/ modules
RUNTIMEV2_REGEX="cosmossdk.io/runtime/v2"
SEVERV2_REGEX="cosmossdk.io/server/v2"
XEXP_REGEX="golang.org/x/exp"
find ./x/ -type f -name 'go.mod' -print0 | while IFS= read -r -d '' file
do
d=$(dirname "$file")
@@ -34,4 +35,9 @@ do
echo "${d} has a dependency on server/v2!"
exit 1
fi
if cd "$CWD/$d" && go list -test -f '{{ .Imports }}' ./... | grep -q -E "${XEXP_REGEX}"; then
echo "${d} has a dependency on golang.org/x/exp"
exit 1
fi
done