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

[PURIFY][BUILD] Remove isOss flag and defaults to oss build #245

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

mihirsoni
Copy link
Contributor

@mihirsoni mihirsoni commented Apr 3, 2021

Description

[Describe what this change achieves] Remove isOSS oss and -no-ss flag from the build distribution code. This still has some hard coded flag, which needs to be removed from other packages, i'll create follow up PRs for the same.

To test this :

* Checkout this PR
* yarn osd bootstrap
* yarn build
* verify `build` and `target` dirs.

Issues Resolved

[List any issues this PR will resolve] #26

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
    Signed-off-by: Mihir Soni mihirsoni.123@gmail.com

Signed-off-by: Mihir Soni <mihirsoni.123@gmail.com>
@mihirsoni mihirsoni added >Fork build Build related additions or modifications labels Apr 3, 2021
@mihirsoni mihirsoni added this to the 1.x release milestone Apr 3, 2021
@odfe-release-bot
Copy link

✅   DCO Check Passed a1a4bd3

@@ -74,7 +74,7 @@ export const BuildPackages: Task = {
await buildProductionProjects({
opensearchDashboardsRoot: config.resolveFromRepo(),
buildRoot: build.resolvePath(),
onlyOSS: build.isOss(),
onlyOSS: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Remove this from other packages.

@@ -49,12 +49,6 @@ export const CreatePackageJson: Task = {
dependencies: pkg.dependencies,
};

if (build.isOss()) {
newPkg.workspaces.packages = newPkg.workspaces.packages.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems applied for oss, why not keep this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no x-pack workspace anymore so irrelevant.

Copy link
Contributor

@boktorbb boktorbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mihirsoni mihirsoni merged commit 3e60e6a into opensearch-project:main Apr 5, 2021
@mihirsoni mihirsoni linked an issue Apr 15, 2021 that may be closed by this pull request
4 tasks
wanglam added a commit to wanglam/OpenSearch-Dashboards that referenced this pull request Feb 21, 2024
* fix: permissions missed after workspace update

Signed-off-by: Lin Wang <wonglam@amazon.com>

* remove not used imports

Signed-off-by: Lin Wang <wonglam@amazon.com>

---------

Signed-off-by: Lin Wang <wonglam@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related additions or modifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PURIFY] create OSS distribution only and remove Default distribution.
5 participants