File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash -ex
22
3- # clean up unnecessary source directories
3+ RELEASE=$1
4+ VERSION=$2
5+ BLD_NUM=$3
6+ TOOLS_DIR=$4
47
5- # Remove un-needed ns_server got pull in for to use <!-- gozip tools --> purpose
8+ # clean up unnecessary source directories
9+
10+ # Remove un-needed ns_server git pull in for to use <!-- gozip tools --> purpose
611rm -rf godeps/src/github.com/couchbase/ns_server
712# Remove jQuery from scan CBD-2977
813rm -rf godeps/src/github.com/couchbase/cbgt/rest/static/lib/jquery
914
10- # Remove beorn7 and golang_protobuf_extensions from scan CBD-3616
15+ # Remove beorn7 and golang_protobuf_extensions from scan CBD-3616
1116rm -rf godeps/src/github.com/beorn7
1217rm -rf godeps/src/github.com/matttproud/golang_protobuf_extensions
1318
1419# nothing in the build repo should affect third-party reports
1520rm -rf cbbuild
1621
17- # MB-43341, remove couchbase CB components from blackduck report
18- # use *couchbase*/$i to ensure these are from couchbase
22+ # SGW wasn't built with Go modules prior to 3.1, so we shouldn't look at
23+ # any go.mod files
24+ if [ " 3.1.0" != $( printf " 3.1.0\n${VERSION} " | sort -n | head -1) ]; then
25+ find . -type f -name go.\?\?\? -delete
26+ fi
27+
28+ # MB-43341, remove couchbase CB components from blackduck report
29+ # use *couchbase*/$i to ensure these are from couchbase
1930
2031for i in cbauth cbgt go-couchbase go-blip gocbconnstr gocb gocbcore gocbconnstr gomemcached goutils
2132do
You can’t perform that action at this time.
0 commit comments