refactor: remove x/exp dep (#21281)

This commit is contained in:
Julien Robert
2024-08-19 13:14:34 +00:00
committed by GitHub
parent 294b608022
commit 6f30de3a41
37 changed files with 115 additions and 122 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