Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensearch 1.2.2 #91468

Closed
wants to merge 3 commits into from
Closed

Conversation

DVMVCGCG
Copy link
Contributor

Created with brew bump-formula-pr.

@BrewTestBot BrewTestBot added bump-formula-pr PR was created using `brew bump-formula-pr` java Java use is a significant feature of the PR or issue no ARM bottle Formula has no ARM bottle labels Dec 16, 2021
@dblock
Copy link

dblock commented Dec 16, 2021

  1. This should be at least superseded with OpenSearch 1.2.2 which has just been released and includes log4j 2.16. For the build failure see https://github.com/opensearch-project/opensearch-build/blob/main/scripts/components/OpenSearch/build.sh#L123 for the right args.

  2. This formulae downloads the source, builds and runs OpenSearch-min, which is not the release of OpenSearch. It should be rewritten to get the distribution .tar.gz from https://opensearch.org/. Those binaries include all the plugins, are signed and tested. We don't officially have a MacOS distribution yet unfortunately, but in the meantime a Linux distribution can probably be used with some minor changes post-extraction, which I still think would be a lot better than building from source.

Coming from opensearch-project/opensearch-build#38

@DVMVCGCG
Copy link
Contributor Author

@dblock what you suggest makes sense. Is there another formulae you know of that downloads a binary distribution that could be used as an example? I've never written a formulae before, so any pointers would be appreciated.

@dblock
Copy link

dblock commented Dec 16, 2021

@dblock what you suggest makes sense. Is there another formulae you know of that downloads a binary distribution that could be used as an example? I've never written a formulae before, so any pointers would be appreciated.

Me neither ;) For opensearch it's pretty straightforward to get started though.

@chenrui333
Copy link
Member

Can we update opensearch to 1.2.2 per this PR?

@bayandin
Copy link
Member

2. This formulae downloads the source, builds and runs OpenSearch-min, which is not the release of OpenSearch. It should be rewritten to get the distribution .tar.gz from https://opensearch.org/. Those binaries include all the plugins, are signed and tested. We don't officially have a MacOS distribution yet unfortunately, but in the meantime a Linux distribution can probably be used with some minor changes post-extraction, which I still think would be a lot better than building from source.

We don't allow such things in homebrew core. The formula should be built from the source.
If you'd like to make a full build, please create a PR with suggested changes.

@dblock
Copy link

dblock commented Dec 16, 2021

  1. This formulae downloads the source, builds and runs OpenSearch-min, which is not the release of OpenSearch. It should be rewritten to get the distribution .tar.gz from https://opensearch.org/. Those binaries include all the plugins, are signed and tested. We don't officially have a MacOS distribution yet unfortunately, but in the meantime a Linux distribution can probably be used with some minor changes post-extraction, which I still think would be a lot better than building from source.

We don't allow such things in homebrew core. The formula should be built from the source. If you'd like to make a full build, please create a PR with suggested changes.

I see that looking at other formula, thanks. Is it written up somewhere? (I’m new here, apologies).

What’s the guidance for dependencies? This build downloads the kitchen sink from maven for example. Those are binary dependencies, not built from source.

@bayandin
Copy link
Member

I see that looking at other formula, thanks. Is it written up somewhere? (I’m new here, apologies).

Something like this https://docs.brew.sh/Acceptable-Formulae#we-dont-like-binary-formulae?

What’s the guidance for dependencies? This build downloads the kitchen sink from maven for example. Those are binary dependencies, not built from source.

It's ok to use maven / npm / go modules / whatever else that freezes the exact version of source code dependencies with their checksums (ok, maybe "whatever" is a too broad term, but you get the idea).

@bayandin bayandin changed the title opensearch 1.2.1 opensearch 1.2.2 Dec 16, 2021
@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@github-actions github-actions bot added the outdated PR was locked due to age label Jan 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` java Java use is a significant feature of the PR or issue no ARM bottle Formula has no ARM bottle outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants