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

Yarn build server binary does not fail when no nexe prebuild binary is available #224

Closed
SuperSandro2000 opened this issue Mar 13, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@SuperSandro2000
Copy link
Contributor

SuperSandro2000 commented Mar 13, 2019

  • Node 8.15.1

Description

yarn task build:server:binary does not fail when nexe can't fetch a prebuild binary.

INFO  DEPENDENCY:NEXE Starting...
INFO  DEPENDENCY:NEXE Completed! time=1ms {"time":{"expected":9007199254740991,"ms":1552485158580}}
INFO  BUILD:SERVER:BINARY:PACKAGE Executing 'npm ["run","build:nexe"]' {"options":{"cwd":"/src/packages/server"}}
INFO  BUILD:SERVER:BINARY:PACKAGE Completed! time=39238ms {"time":{"expected":9007199254740991,"ms":1552485156727}}
INFO  BUILD:SERVER:BINARY Completed! time=195361ms {"time":{"expected":9007199254740991,"ms":1552485000605}}
Done in 196.37s.

Running npm run build:nexe shows the error

Error: linux-x64-8.15.1 not available, create it using the --build flag
    at NexeCompiler.<anonymous> (/src/packages/server/node_modules/nexe/lib/compiler.js:256:35)
    at step (/src/packages/server/node_modules/nexe/lib/compiler.js:46:23)
    at Object.next (/src/packages/server/node_modules/nexe/lib/compiler.js:27:53)
    at fulfilled (/src/packages/server/node_modules/nexe/lib/compiler.js:18:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Steps to Reproduce

Use this Dockerfile

FROM node:8.15-alpine

WORKDIR /src

RUN apk --no-cache --no-progress add g++ git libsecret-dev libxkbfile-dev make 

RUN git clone https://github.com/codercom/code-server.git . \
 && npm install -g yarn@1.13 \
 && yarn
RUN yarn task build:server:binary
@SuperSandro2000 SuperSandro2000 added the bug Something isn't working label Mar 13, 2019
@sr229
Copy link
Contributor

sr229 commented Mar 13, 2019

I assume its because nexe does not log it as a non-zero error but logs it as a stderr.

@SuperSandro2000
Copy link
Contributor Author

It could be that he fixed it in nexe 3 but I am no JS dev otherwise I would have fixed it.

@sr229
Copy link
Contributor

sr229 commented Mar 13, 2019

You don't need to be a JS dev to know stdio, stderr and exit codes.

@SuperSandro2000
Copy link
Contributor Author

SuperSandro2000 commented Mar 13, 2019

I know those. I do a lot of bash stuff. I meant to say that I don't know js good enough to maybe contribute a fix.

@MichaelDesantis
Copy link
Contributor

We now use nbin instead of nexe. This issue is no longer relevant and can be closed.

@nol166 please close.

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

No branches or pull requests

4 participants