Skip to content

Commit

Permalink
fix(opensearch): fixes import support for opensearch 1.x (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthlatest authored Feb 12, 2022
1 parent 24db285 commit 3cb9ea9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,27 @@
# https://golang.org/doc/install/source#environment
mkdir -p build && cd build

VERSION=1.0.0-beta.3



VERSION=1.0.0-beta.4

export GOOS=darwin

export GOARCH=arm64

go build -o "abc-${GOARCH}-${VERSION}" -tags 'oss' ./../cmd/abc/...
go build -o "abc-${GOARCH}-${VERSION}" ./../cmd/abc/...
zip -r "abc-${GOOS}-${GOARCH}-${VERSION}.zip" "abc-${GOARCH}-${VERSION}"

export GOARCH=amd64

go build -o "abc-${VERSION}" -tags 'oss' ./../cmd/abc/...
go build -o "abc-${VERSION}" ./../cmd/abc/...
zip -r "abc-${GOOS}-${VERSION}.zip" "abc-${VERSION}"

export GOOS=windows

go build -o "abc-${VERSION}.exe" -tags 'oss' ./../cmd/abc/...
go build -o "abc-${VERSION}.exe" ./../cmd/abc/...
zip -r "abc-${GOOS}-${VERSION}.zip" "abc-${VERSION}.exe"

export GOOS=linux

rm "abc-${VERSION}"
go build -o "abc-${VERSION}" -tags 'oss' ./../cmd/abc/...
go build -o "abc-${VERSION}" ./../cmd/abc/...
zip -r "abc-${GOOS}-${VERSION}.zip" "abc-${VERSION}"
2 changes: 1 addition & 1 deletion cmd/abc/appbase_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/appbaseio/abc/imports"
)

var version = "1.0.0-beta.3"
var version = "1.0.0-beta.4"
var variant = imports.BuildName

// runVersion runs the logout command
Expand Down
2 changes: 1 addition & 1 deletion importer/adaptor/elasticsearch/clients/v7/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Reader struct {
}

func init() {
constraint, _ := version.NewConstraint(">= 7.0")
constraint, _ := version.NewConstraint(">= 1.0")
clients.AddReader("v7", constraint, func(opts *clients.ClientOptions) (client.Reader, error) {
esOptions := []elastic.ClientOptionFunc{
elastic.SetURL(opts.URLs...),
Expand Down

0 comments on commit 3cb9ea9

Please sign in to comment.