Skip to content

Commit 9009f6a

Browse files
crhinopivotal
authored andcommitted
Bump src/github.com/cloudfoundry-incubator/tcp-emitter
Bump Leo Chu: Update tcp emitter packages to comply with go vet Signed-off-by: Fermin Ordaz <[email protected]>
1 parent 9f19de2 commit 9009f6a

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

packages/tcp_emitter/spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ files:
2424
- github.com/cloudfoundry-incubator/tcp-emitter/cmd/tcp-emitter/*.go # gosub
2525
- github.com/cloudfoundry-incubator/tcp-emitter/cmd/tcp-emitter/testrunner/*.go # gosub
2626
- github.com/cloudfoundry-incubator/tcp-emitter/config/*.go # gosub
27+
- github.com/cloudfoundry-incubator/tcp-emitter/emitter/*.go # gosub
2728
- github.com/cloudfoundry-incubator/tcp-emitter/routing_table/*.go # gosub
29+
- github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/*.go # gosub
30+
- github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/endpoint/*.go # gosub
31+
- github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/event/*.go # gosub
32+
- github.com/cloudfoundry-incubator/tcp-emitter/routing_table/util/*.go # gosub
2833
- github.com/cloudfoundry-incubator/tcp-emitter/syncer/*.go # gosub
2934
- github.com/cloudfoundry-incubator/tcp-emitter/watcher/*.go # gosub
3035
- github.com/cloudfoundry-incubator/trace-logger/*.go # gosub

scripts/run-unit-tests

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ bin_dir=$(dirname $0)/../bin
66

77
tmpdir=$(mktemp -d /tmp/cf-routing-downloads.XXXX)
88

9+
run_go_vet() {
10+
for component in "$@"
11+
do
12+
pushd $component
13+
for file in $(find . -name "*.go" -not -iname "*test.go")
14+
do
15+
go tool vet -v -all -shadow=true $file
16+
done
17+
popd
18+
done
19+
}
20+
921
if uname -a | grep Darwin; then os=darwin; else os=linux; fi
1022
curl -L -o ${tmpdir}/consul-0.6.3.zip "https://releases.hashicorp.com/consul/0.6.3/consul_0.6.3_${os}_amd64.zip"
1123
unzip -o ${tmpdir}/consul-0.6.3.zip -d ./${bin_dir}
@@ -23,6 +35,8 @@ if [ -n "$PACKAGE" ]; then
2335
ginkgo -r -p "$@" "./src/${PACKAGE}"
2436
else
2537
pushd src/github.com/cloudfoundry-incubator/
38+
run_go_vet tcp-emitter
39+
2640
ginkgo -r -keepGoing -p -trace -randomizeAllSpecs -progress \
2741
uaa-go-client routing-api routing-api-cli cf-tcp-router tcp-emitter "$@"
2842
popd

0 commit comments

Comments
 (0)