-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Update the build.release task #1454
Conversation
@@ -6,20 +6,19 @@ class Build::Release < LuckyCli::Task | |||
|
|||
summary "Compile app for production" | |||
|
|||
def initialize(@io : IO = STDOUT, @error_io : IO = STDERR) | |||
end | |||
property error_io : IO = STDERR |
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.
This should be added in to LuckyCli::Task directly to match up with output
.
|
||
def call | ||
command = "crystal build --release src/start_server.cr" | ||
command = "crystal build --release src/start_server.cr -o bin/start_server" | ||
|
||
log "Building binary with '#{command}" |
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.
Maybe try adding an else and check if the process isn't completing successfully?
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. Good call. It is failing.. 🤔 but I guess why.
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.
oh, but that still doesn't explain why IO::Memory
is printing to STDOUT 🤨
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.
Ohh, it's actually the second spec that is printing to stdout, it doesn't have it's output changed, only error_io
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.
ooohhhh 😂 yup. That fixes it. Thanks!
Purpose
Fixes #1387
Description
We should now be building all binaries to the
bin/
dir. When we updated to do this, thebuild.release
task was missed. This also uses theoutput
property from LuckyCli.One strange thing I couldn't figure out is that
log "Building binary with '#{command}"
prints out to the screen now 🤔 Even though it's aIO::Memory
, it still seems to print just that one message. It doesn't print out the other one...Checklist
crystal tool format spec src
./script/setup
./script/test