提交 85cd479e 作者: Steven Allen

add CI step to check for gx-rewritten paths

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 7a7bf2c5
#!/usr/bin/env bash
set -euo pipefail
T="$(mktemp)"
if go list -f '{{ join .Deps "\n" }}' ./... | grep '^gx/ipfs/' >"$T"; then
echo "Go-ipfs has the following gx-imports"
echo "-----------------------------------"
cat "$T"
echo "-----------------------------------"
echo "Run 'gx-go rw --fix' in your source directory"
rm -f "$T"
exit 1
fi
rm -f "$T"
......@@ -128,6 +128,13 @@ ansiColor('xterm') { withEnv(['TERM=xterm-color']) {
run 'test -z "$(./bin/gx deps dupes)"'
}
}
},
'check for gx paths': {
setupStep('linux') { run ->
timeout(time: check_timeout, unit: 'MINUTES') {
run 'make test_gx_imports'
}
}
}
)
}
......
......@@ -17,6 +17,9 @@ gx-deps: bin/gx bin/gx-go
endif
.PHONY: gx-deps
test_gx_imports:
bin/test-gx-imports
ifeq ($(tarball-is),0)
DEPS_GO += gx-deps
endif
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论