mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
This change was made with the following commands
go mod init
go mod tidy
go mod vendor -v
Revision of github.com/op/go-logging changed because
github.com/anacrolix/torrent requires the current version in its go.mod
# github.com/op/go-logging
yunion.io/x/onecloud/cmd/torrent
github.com/anacrolix/torrent
github.com/elgatito/upnp
github.com/op/go-logging
Content of google.golang.org/grpc changed and it's indeed the case after
checking with the upstream repo. It's very likely that the old content
is wrong.
Some packages like golang.org/x/sys/unix are added because they are
indeeded needed
Some packages are removed as a whole because they are needed anymore
29 lines
716 B
Bash
29 lines
716 B
Bash
#!/bin/bash
|
|
|
|
cd "$(dirname $0)"
|
|
|
|
go get golang.org/x/lint/golint
|
|
DIRS=". tcpassembly tcpassembly/tcpreader ip4defrag reassembly macs pcapgo pcap afpacket pfring routing defrag/lcmdefrag"
|
|
# Add subdirectories here as we clean up golint on each.
|
|
for subdir in $DIRS; do
|
|
pushd $subdir
|
|
if golint |
|
|
grep -v CannotSetRFMon | # pcap exported error name
|
|
grep -v DataLost | # tcpassembly/tcpreader exported error name
|
|
grep .; then
|
|
exit 1
|
|
fi
|
|
popd
|
|
done
|
|
|
|
pushd layers
|
|
for file in *.go; do
|
|
if cat .lint_blacklist | grep -q $file; then
|
|
echo "Skipping lint of $file due to .lint_blacklist"
|
|
elif golint $file | grep .; then
|
|
echo "Lint error in file $file"
|
|
exit 1
|
|
fi
|
|
done
|
|
popd
|