Skip to content

Commit

Permalink
use beleve dependencies from n1fty/go.mod
Browse files Browse the repository at this point in the history
Change-Id: Iab90a97f4bb2623856e4a258b63530297f5dd100
Reviewed-on: https://review.couchbase.org/c/query/+/178078
Reviewed-by: Abhi Dangeti <abhinav@couchbase.com>
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
  • Loading branch information
sitaramv committed Jul 28, 2022
1 parent a8c39a3 commit e193494
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,13 @@ function repo_by_gomod {
grepo="${repo}/${subbranch}"
fi
C=`grep "${grepo}" $file | grep -v module | grep -v replace | grep -v indirect| grep -v "${repo}-"`
bpath=`echo $repo|awk -F/ '{print $1}'`
if [ -z "$C" ] && [ "$bpath" == "blevesearch" ]; then
C=`grep "${grepo}" $file | grep -v module | grep -v replace | grep indirect| grep -v "${repo}-"`
fi
if [[ -z "$C" ]]
then
C="../${repo} $4"
C="github.com/couchbase/${repo} $4"
fi
gpath=`echo $C| awk '{print $1}'`
vers=`echo $C| awk '{print $2}'`
Expand Down Expand Up @@ -226,6 +230,9 @@ function repo_setup {
repo_by_gomod ../cbft/go.mod zapx "v13" $defbranch
repo_by_gomod ../cbft/go.mod zapx "v14" $defbranch
repo_by_gomod ../cbft/go.mod zapx "v15" $defbranch
repo_by_gomod ../n1fty/go.mod blevesearch/geo "" $defbranch
repo_by_gomod ../n1fty/go.mod blevesearch/bleve_index_api "" $defbranch
repo_by_gomod ../n1fty/go.mod blevesearch/scorch_segment_api "v2" $defbranch
repo_by_gomod go.mod gocbcore "v10" $defbranch
repo_by_gomod ../cbgt/go.mod gocbcore "v9" $defbranch
repo_by_gomod go.mod x/net "" `go version | awk -F'[. ]' '{print "release-branch." $3 "." $4}'` $defbranch
Expand Down

0 comments on commit e193494

Please sign in to comment.