Skip to content
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

fix: do not add zero-length filenames in per-target zips #45

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

Th3Fanbus
Copy link
Contributor

Rewrite the compound conditional to avoid future confusions. This bug has gone unnoticed for so long because Alpakit-generated zip files do not contain folder entries when iterating with a zipReader. However, manually generated zip files, e.g. ContentLib mods, could contain folder entries depending on the zipping program used. The resulting zero-length folder in the per-target zips breaks SMM2 on Windows, but not SMM3.

@Th3Fanbus
Copy link
Contributor Author

It's complaining about https://academy.unrealengine.com/ being unreachable (HTTP 504)

@codecov-commenter
Copy link

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (ab5d04f) 16.95% compared to head (9620640) 16.94%.

Files Patch % Lines
storage/storage.go 0.00% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   16.95%   16.94%   -0.01%     
==========================================
  Files         103      103              
  Lines        5437     5440       +3     
==========================================
  Hits          922      922              
- Misses       4414     4417       +3     
  Partials      101      101              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Th3Fanbus Th3Fanbus changed the base branch from main to staging February 6, 2024 22:01
Rewrite the compound conditional to avoid future confusions. This
bug has gone unnoticed for so long because Alpakit-generated zip
files do not contain folder entries when iterating with a `zipReader`.
However, manually generated zip files, e.g. ContentLib mods, could
contain folder entries depending on the zipping program used. The
resulting zero-length folder in the per-target zips breaks SMM2 on
Windows, but not SMM3.
@Vilsol Vilsol merged commit 867a34d into satisfactorymodding:staging Feb 6, 2024
3 checks passed
@Th3Fanbus Th3Fanbus deleted the patch-1 branch March 7, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants