mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
The check is done through
```
if [[ $(go list -f '{{ join .Deps " "}}') == *" testing "* ]]; then
error..
fi
```
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
10 lines
257 B
Bash
Executable File
10 lines
257 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "** presubmit/$(basename $0)"
|
|
|
|
# Check to make sure "testing" is not imported
|
|
if [[ $(go list -f '{{ join .Deps " "}}') == *" testing "* ]]; then
|
|
echo "** presubmit/$(basename $0): please remove any 'import \"testing\"'"
|
|
exit 1
|
|
fi
|