-
Notifications
You must be signed in to change notification settings - Fork 31
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
Sasquatch update #142
Sasquatch update #142
Conversation
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'd suggest changing the one thing that is commented on.
fact_extractor/install/unpacker.py
Outdated
for file_name, url, sha256 in EXTERNAL_DEB_DEPS: | ||
try: | ||
run(split(f'wget {url}/{file_name}'), check=True, env=os.environ) | ||
assert _sha256_hash_file(Path(file_name)) == sha256 |
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.
Are you sure this will actually throw in production? I remeber reading something to that point. All I could find by short research was this from the official docs:
The current code generator emits no code for an assert statement when optimization is requested at compile time
So this might be irrelevant. We would be safe by throwing an exception manually though (InstallationError
).
branch is based on #140 (should be merged first)