Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add binary version configuration #42
base: main
Are you sure you want to change the base?
Add binary version configuration #42
Changes from all commits
5621b5d
771b3e3
d6a74c5
8403495
0e958fc
cda8510
5b522c0
f92e9d8
f9f8acc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
the main problem of the failing test
testVersionDownloaded
(and i assume also the cause for the other failing tests) is this condition. php inspections (ea extended) the awesome plugin of phpstorm warns here that the else block can be extracted as the if block does areturn
. so for linux we download a tar/tar.gz file and the windows users are "stuck" in the if block and get returned. so there is no renaming to a path with the version inside.also the zip file has a subdirectory called
src
this leads to a non-accessible binaryi also tried to run the tests on my alpine system, it is quite strange as they also fail. on linux my
exit
is ignored and all tests are running (i just wanted to create a screenshot of the resulting directory structure after download).not sure if the code is not that stable or my linux bugging.
i am also confused why this wasn't a problem before,
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 is never reached for windows (zip download)
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.
we have no error handling for rate limits in here, in my tests i get a
403
from github and the resulting error message can be confusing without reading to thecaused by
partThere 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.
hm, this will lead to BC breaks. What about to move this to the end instead?