1
1
class Opensearch < Formula
2
2
desc "Open source distributed and RESTful search engine"
3
3
homepage "https://github.com/opensearch-project/OpenSearch"
4
- url "https://github.com/opensearch-project/OpenSearch/archive/refs/tags/2.19.2 .tar.gz"
5
- sha256 "660eaf0958e79198c3f5483361b70a1f7618ae965955d25f2ca48ca2d113ed18 "
4
+ url "https://github.com/opensearch-project/OpenSearch/archive/refs/tags/3.0.0 .tar.gz"
5
+ sha256 "5701c0a0e801a27cb1fb6521c17138c43a0933e364fa2cfb5a62cfcdcb4e1270 "
6
6
license "Apache-2.0"
7
7
8
8
bottle do
9
- sha256 cellar : :any_skip_relocation , arm64_sequoia : "2dc6a9a9df5ecb31dc045f765c6fa4a725793d91b70595861ad3f11b3b0064a7 "
10
- sha256 cellar : :any_skip_relocation , arm64_sonoma : "88975f6160f4a89fc9493e6c889b8b698dec4028a527bfa68da32214c1ba1bbb "
11
- sha256 cellar : :any_skip_relocation , arm64_ventura : "ec9dce75fab4820d576da5b88bc86cdc3247824f1bad98f6e9333eadc09c5597 "
12
- sha256 cellar : :any_skip_relocation , sonoma : "668204234f0812989aa2e7ffc52661c578e3ac935b952907be2260554cfc3ac9 "
13
- sha256 cellar : :any_skip_relocation , ventura : "15d0a18e26c272146a86425d0ce5c2dbf1c5c433aab352db783e46b66ee17795 "
14
- sha256 cellar : :any_skip_relocation , arm64_linux : "ffd1eddbab1e73489038703ac8ef8c6beadd30b054f830c85d21454adfd3e39e "
15
- sha256 cellar : :any_skip_relocation , x86_64_linux : "c24ab6ddd1a235545f34efa48bb75be5e607590bd6929acc9ab6b343fc9e8f32 "
9
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "02c7d73c1f51d079efc702aeabc45e840dfbd6f9c3e3a5d5d39845b7e084f9b9 "
10
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "08a110cc034a792732c5612adfa6879b8d0cd360d0abb538f4987be274bdf829 "
11
+ sha256 cellar : :any_skip_relocation , arm64_ventura : "3ff98574221a06111ee8663c5a55f9de0661b3275f85c93fea08cc4b93a21abb "
12
+ sha256 cellar : :any_skip_relocation , sonoma : "9ac2af223ccdc1bc9df151bd53e56415c3ea5a3dd664e9ff6efd32734df83974 "
13
+ sha256 cellar : :any_skip_relocation , ventura : "7316664aaad936f205d760e5e3292b3f567723d05acd4eaf7cf3c7818333a60b "
14
+ sha256 cellar : :any_skip_relocation , arm64_linux : "2af72cc2f707be2ca3ea709fbf1e597a923e4daa7a3e5610178bb697bb022eb8 "
15
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "c7f8b518e5898e1af368400a5053ee50e2df258bc05de53dfcc8549ffffab46f "
16
16
end
17
17
18
18
depends_on "gradle" => :build
19
19
# Can be updated after https://github.com/opensearch-project/OpenSearch/pull/18085 is released.
20
20
depends_on "openjdk@21"
21
21
22
- # Remove below patches after https://github.com/opensearch-project/OpenSearch/pull/17942 is released.
23
- patch :DATA
24
- patch do
25
- url "https://github.com/opensearch-project/OpenSearch/commit/d3eb8fe5e85f1103d73410703269a0f967ad3ec2.patch?full_index=1"
26
- sha256 "f9c91e12cdbcb8625bcc704d34d6d10bdfc94aa86395faa6293bdf41d030cfe8"
27
- end
28
-
29
22
def install
30
23
platform = OS . kernel_name . downcase
31
24
platform += "-arm64" if Hardware ::CPU . arm?
@@ -37,7 +30,7 @@ def install
37
30
Dir [ "../distribution/archives/no-jdk-#{ platform } -tar/build/distributions/opensearch-*.tar.gz" ] . first
38
31
39
32
# Install into package directory
40
- libexec . install "bin" , "lib" , "modules"
33
+ libexec . install "bin" , "lib" , "modules" , "agent"
41
34
42
35
# Set up Opensearch for local development:
43
36
inreplace "config/opensearch.yml" do |s |
@@ -103,93 +96,13 @@ def caveats
103
96
port = free_port
104
97
( testpath /"data" ) . mkdir
105
98
( testpath /"logs" ) . mkdir
106
- fork do
107
- exec bin /"opensearch" , "-Ehttp.port=#{ port } " ,
108
- "-Epath.data=#{ testpath } /data" ,
109
- "-Epath.logs=#{ testpath } /logs"
110
- end
99
+ spawn bin /"opensearch" , "-Ehttp.port=#{ port } " ,
100
+ "-Epath.data=#{ testpath } /data" ,
101
+ "-Epath.logs=#{ testpath } /logs"
111
102
sleep 60
112
103
output = shell_output ( "curl -s -XGET localhost:#{ port } /" )
113
104
assert_equal "opensearch" , JSON . parse ( output ) [ "version" ] [ "distribution" ]
114
105
115
106
system bin /"opensearch-plugin" , "list"
116
107
end
117
108
end
118
-
119
- __END__
120
- diff --git a/build.gradle b/build.gradle
121
- index 679f7b9299248fb0f5173db8fccdfb77965e394b..187574da9e62aec063548871f5dc1a7fbf62a082 100644
122
- --- a/build.gradle
123
- +++ b/build.gradle
124
- @@ -721,7 +721,7 @@ subprojects {
125
- reporting {
126
- reports {
127
- testAggregateTestReport(AggregateTestReport) {
128
- - testType = TestSuiteType.UNIT_TEST
129
- + testSuiteName = "test"
130
- }
131
- }
132
- }
133
- diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle
134
- index 113ab8aced60b29406c60a80ae2097505eb9923b..b94431c63c96467fa75ba7cc607391997dd287fc 100644
135
- --- a/distribution/packages/build.gradle
136
- +++ b/distribution/packages/build.gradle
137
- @@ -63,7 +63,7 @@ import java.util.regex.Pattern
138
- */
139
-
140
- plugins {
141
- - id "com.netflix.nebula.ospackage-base" version "11.10.1"
142
- + id "com.netflix.nebula.ospackage-base" version "11.11.2"
143
- }
144
-
145
- void addProcessFilesTask(String type, boolean jdk) {
146
- diff --git a/gradle/code-coverage.gradle b/gradle/code-coverage.gradle
147
- index eb27dd1a76634251bceafd6fefbafd65eafd5c66..1e41f12e1cc48de3ec9bcd0078f348f3a30af8f3 100644
148
- --- a/gradle/code-coverage.gradle
149
- +++ b/gradle/code-coverage.gradle
150
- @@ -38,7 +38,7 @@ if (System.getProperty("tests.coverage")) {
151
- reporting {
152
- reports {
153
- testCodeCoverageReport(JacocoCoverageReport) {
154
- - testType = TestSuiteType.UNIT_TEST
155
- + testSuiteName = "test"
156
- }
157
- }
158
- }
159
- diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
160
- index c51246f2815f5294bd8a51b3ac25c19964577ac1..95e1a2f213a063c0f371f4eab8e67ba860be7baa 100644
161
- --- a/gradle/wrapper/gradle-wrapper.properties
162
- +++ b/gradle/wrapper/gradle-wrapper.properties
163
- @@ -11,7 +11,7 @@
164
-
165
- distributionBase=GRADLE_USER_HOME
166
- distributionPath=wrapper/dists
167
- -distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-all.zip
168
- +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
169
- zipStoreBase=GRADLE_USER_HOME
170
- zipStorePath=wrapper/dists
171
- -distributionSha256Sum=296742a352f0b20ec14b143fb684965ad66086c7810b7b255dee216670716175
172
- +distributionSha256Sum=fba8464465835e74f7270bbf43d6d8a8d7709ab0a43ce1aa3323f73e9aa0c612
173
- diff --git a/gradlew b/gradlew
174
- index f5feea6d6b116baaca5a2642d4d9fa1f47d574a7..faf93008b77e7b52e18c44e4eef257fc2f8fd76d 100755
175
- --- a/gradlew
176
- +++ b/gradlew
177
- @@ -86,8 +86,7 @@ done
178
- # shellcheck disable=SC2034
179
- APP_BASE_NAME=${0##*/}
180
- # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
181
- -APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
182
- -' "$PWD" ) || exit
183
- +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
184
-
185
- # Use the maximum available, or set MAX_FD != -1 to use that value.
186
- MAX_FD=maximum
187
- @@ -206,7 +205,7 @@ fi
188
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
189
-
190
- # Collect all arguments for the java command:
191
- -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
192
- +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
193
- # and any embedded shellness will be escaped.
194
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
195
- # treated as '${Hostname}' itself on the command line.
0 commit comments