-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't read stdout into memory when not needed #143
Conversation
37e54b8
to
c96c9aa
Compare
c96c9aa
to
e8cbb49
Compare
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.
Lots of minor comments, but looks good overall.
Co-authored-by: Casey Rodarmor <[email protected]>
Co-authored-by: Casey Rodarmor <[email protected]>
Co-authored-by: Casey Rodarmor <[email protected]>
Co-authored-by: Casey Rodarmor <[email protected]>
Co-authored-by: Casey Rodarmor <[email protected]>
@@ -73,6 +73,7 @@ jobs: | |||
- name: Install just |
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.
If you want to get a specific version of just, you can do curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to DEST --tag VERSION
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.
Does that work on windows?
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.
Uhhhhhhh, I don't actually know 😅
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.
Yeah, no, it doesn't. :|
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've opened this issue to explain what the actual problems are: casey/just#943. I.e. I'm not at all interested in getting a specific just
version, the newest would be just fine. I just want a way that works on github CI on all platforms.
42f02c9
to
478c938
Compare
cradle
needs to read what's written tostdout
into memory when the user wants to capturestdout
, e.g. withStdoutUntrimmed
. However currently it also reads all ofstdout
into memory when not capturingstdout
, which is unnecessary. It's also conceivable (when there's lots of output) that this may cause problems. This PR avoids collectingstdout
into memory when it's not captured.The same could be done for
stderr
. Not sure whether that's as important as doing it forstdout
. In any case it should be done in a separate PR.This PR is half a fix for #26.