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

[BUG] [Help me,Thanks] run yarn build-platform appear "EINVAL: invalid argument" errors on windows #1492

Closed
Top1zZ opened this issue Apr 25, 2022 · 5 comments · Fixed by #2601
Labels
bug Something isn't working

Comments

@Top1zZ
Copy link

Top1zZ commented Apr 25, 2022

Describe the bug

in git bash run yarn build-platform appear "EINVAL: invalid argument" error

To Reproduce
Steps to reproduce the behavior:

  1. yarn build-platform
  2. See error

Expected behavior
build successful

OpenSearch Version
v1.2.0

Dashboards Version
v1.2.0

Plugins
none

Screenshots

Snipaste_2022-04-25_16-51-14

Host/Environment (please complete the following information):

  • OS: windows10
  • Browser and version: chrome
  • node.js: v10.24.1

Additional context

I just pulled the code from GitHub, installed the dependency, and then implemented the package without making any code changes. Such an error occurred

I tried to solve it. It's the FS of node For questions about utimes, refer to the link: nodejs/node#5561

@Top1zZ Top1zZ added bug Something isn't working untriaged labels Apr 25, 2022
@Top1zZ Top1zZ changed the title [BUG] [help me,thanks]run yarn build-platform occur errors on windows [BUG] [help me,thanks]run yarn build-platform occur "EINVAL: invalid argument" errors on windows Apr 25, 2022
@Top1zZ Top1zZ changed the title [BUG] [help me,thanks]run yarn build-platform occur "EINVAL: invalid argument" errors on windows [BUG] [help me,thanks]run yarn build-platform appear "EINVAL: invalid argument" errors on windows Apr 25, 2022
@Top1zZ Top1zZ changed the title [BUG] [help me,thanks]run yarn build-platform appear "EINVAL: invalid argument" errors on windows [BUG] [Help me,Thanks] run yarn build-platform appear "EINVAL: invalid argument" errors on windows Apr 25, 2022
@Top1zZ
Copy link
Author

Top1zZ commented Apr 25, 2022

I'm curious. Hasn't anyone encountered such a problem?

@kavilla
Copy link
Member

kavilla commented Apr 25, 2022

Hello @Top1zZ , if you don't pass any arguments to the build-platform it will try to use your OS to try to build image. However, we have not yet started the campaign to support Windows.

Here are the list of other issues with Windows:

Would you be able to try:
yarn build --skip-os-packages

I'm not positive it will help actually produce a windows artifact but it's worth a try.

build-platform is a relatively new build script that is suppose to target single OS builds and that only support Linux or unix-like systems as of today.

We will need to create a meta issue about developer support on Windows and link it to this issue:
opensearch-project/opensearch-build#33

Apologies once again about this inconvenience.

@Top1zZ
Copy link
Author

Top1zZ commented Apr 26, 2022

Hello @Top1zZ , if you don't pass any arguments to the build-platform it will try to use your OS to try to build image. However, we have not yet started the campaign to support Windows.您好@Top1zZ,如果您不将任何参数传递给构建平台,它将尝试使用您的操作系统来尝试构建映像。但是,我们还没有开始支持 Windows 的活动。

Here are the list of other issues with Windows:以下是 Windows 的其他问题列表:

Would you be able to try:你能试试: yarn build --skip-os-packages纱线构建--skip-os-packages

I'm not positive it will help actually produce a windows artifact but it's worth a try.我不肯定它会帮助实际产生一个 Windows 工件,但值得一试。

build-platform is a relatively new build script that is suppose to target single OS builds and that only support Linux or unix-like systems as of today.build-platform 是一个相对较新的构建脚本,假设针对单一操作系统构建,并且截至目前仅支持 Linux 或类 unix 系统。

We will need to create a meta issue about developer support on Windows and link it to this issue:我们需要创建一个关于 Windows 上的开发人员支持的元问题并将其链接到此问题: opensearch-project/opensearch-build#33opensearch-project/opensearch-build#33

Apologies once again about this inconvenience.再次为给您带来的不便表示歉意。

Hi @kavilla,Thank you very much for responding to my question. It answers my doubts, and I will try to package on other platforms

@ahopp ahopp removed the untriaged label Apr 26, 2022
@ahopp
Copy link
Contributor

ahopp commented Apr 26, 2022

Based on the above information, we'll close this for now as there isn't a bug or Dashboard specific issues. The OpenSearch project is tracking the request for a signed (X64)Windows artifact for OpenSearch / OpenSearch Dashboards here.

@ahopp ahopp closed this as completed Apr 26, 2022
@kavilla
Copy link
Member

kavilla commented Apr 26, 2022

Will also link this issue for OpenSearch Dashboards side: #796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants