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
Support azure signtool #771
Support azure signtool #771
Changes from all commits
23b7ae8
03cc07c
972f324
fff427f
621f6c7
d791cd8
7a3e546
b2b0325
6f088ac
86f118a
11b5dcb
cca1ce4
e6565c7
0101175
352209f
c049abe
31110f5
b6e7aa3
9e8dff8
477d7e0
be5b259
55458a4
7f7efd2
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.
What happens if a user tries to set this to a full path? Might be tempting 😬
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.
At the same time, if we are validating the input in construct.py:805, why do we need normalization here? 🤔 For library usage? In that case it should be the same logic (or move the logic here).
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.
constructor
will and should fail.windows_signing_tool
is the name. Otherwise, I would have to infer from the binary what the appropriate signing too is.Yes, that's true, good catch!
I'm not sure about this. Setting default values and manipulating input is done in
main_build
.validate()
performs validation here. If we move this line intovalidate()
, we are mixing scopes, which makes things harder to track.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.
Just noting here that no quotes are needed because we don't expect spaces here.
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.
Can this fail if status is empty or None?
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'm not sure how this could be
None
unlessproc.stdout
can somehow beNone
.If
status
is an empty string,int(status)
raises aValueError
, which is caught further down.