-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
bs-platform: don't build a development binary #77726
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
bs-platform: don't build a development binary #77726
Conversation
@@ -35,11 +35,12 @@ stdenv.mkDerivation { | |||
''; | |||
|
|||
buildPhase = '' | |||
node scripts/ninja.js build | |||
# This is an unfortunate name, but it's actually how to build a release | |||
# binary for BuckleScript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't BS_RELEASE_BUILD
environment variable enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we technically need it, the build script sets is: https://github.com/BuckleScript/bucklescript/blob/0c44d04ea08a4748376de020b2ea76b1ba622981/scripts/install.js#L29
''; | ||
|
||
installPhase = '' | ||
node scripts/install.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see so scripts/install.js scripts/ninja.js build
is esentially not needed for production build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts/ninja.js build
is not needed for a production build. scripts/install.js
is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that's what I meant, sorry for confusion. I should stop doing review early in the morning :D
@@ -23,6 +23,6 @@ in | |||
platforms = platforms.all; | |||
# Currently there is an issue with aarch build in hydra | |||
# https://github.com/BuckleScript/bucklescript/issues/4091 | |||
badPlatforms = platforms.aarch64; | |||
# badPlatforms = platforms.aarch64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aarch64 is still failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the error message this time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit lost, by reading the logs, it still seems to be a dev build, since cppo is running, in release build, cppo is not needed
@@ -23,6 +23,6 @@ in | |||
platforms = platforms.all; | |||
# Currently there is an issue with aarch build in hydra | |||
# https://github.com/BuckleScript/bucklescript/issues/4091 | |||
badPlatforms = platforms.aarch64; | |||
# badPlatforms = platforms.aarch64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# badPlatforms = platforms.aarch64; | |
badPlatforms = platforms.aarch64; |
8362504
to
856278c
Compare
LGTM now. BTW @anmonteiro I would just change the commit message (and PR name) because we in fact did build the release binary even before, we just build development version first it seems. |
856278c
to
d157bf2
Compare
@turboMaCk thanks, just changed the commit message and the PR title. |
d157bf2
to
725fd9f
Compare
@GrahamcOfBorg build bs-platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks @anmonteiro 👍
Motivation for this change
It was pointed out in the upstream issue that @turboMaCk opened wrt aarch64 that we are building in devmode (link)
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)