Skip to content

Update dirent.h - #223

Open
polluks wants to merge 5 commits into
twogood:mainfrom
polluks:patch-2
Open

polluks wants to merge 5 commits into
twogood:mainfrom
polluks:patch-2

Conversation

@polluks

@polluks polluks commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

https://github.com/tronkko/dirent/blob/master/include/dirent.h

Signed-off-by: Stefan <stefan.haubenthal@gmail.com>
@twogood

twogood commented Mar 24, 2026

Copy link
Copy Markdown
Owner

Any specific reason to update this file?

@polluks

polluks commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

No, just to be up-to-date.

@twogood

twogood commented Mar 27, 2026

Copy link
Copy Markdown
Owner

Have you tested it with msvc build? Since we only compile with mingw in GitHub actions.

@kratz00

kratz00 commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

I started looking into a workflow using MSVC: https://github.com/kratz00/unshield/actions/runs/23689970743
Currently one of the tests is failing.

@twogood

twogood commented Mar 29, 2026

Copy link
Copy Markdown
Owner

I started looking into a workflow using MSVC: https://github.com/kratz00/unshield/actions/runs/23689970743 Currently one of the tests is failing.

wireplay_old_compression (SEGFAULT)

That's.. interesting :)

https://github.com/tronkko/dirent/blob/master/include/dirent.h

Signed-off-by: Stefan <stefan.haubenthal@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 99e97617-a87b-4999-907a-be9fd02c04a4
📥 Commits

Reviewing files that changed from the base of the PR and between 8c13bfb and a9d0c9d.

📒 Files selected for processing: 1
  • win32_msvc/dirent.h
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@twogood

twogood commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

What this change does: Replaces the bundled MSVC dirent compatibility header with a substantially newer upstream version.

I found no project-specific bug or required feature demonstrated by the PR. Its discussion explicitly says the motivation is simply to be up to date. Most added APIs are not used by Unshield, and the existing macOS tests (24/24 passing) do not compile this Windows-only header.

Before merging, identify the exact upstream revision and a concrete benefit for Unshield, and validate an MSVC build plus archive discovery/extraction on Windows. A clean rebase and passing Unix tests cannot establish that this replacement is safe on its target platform.

Verdict: Low priority. I would defer or close it unless a concrete Windows fix or compatibility need justifies the update. This is not a claim that an upstream refresh can never be useful; the benefit and target-platform evidence are missing here.


Branch update correction: The initial update used a force-pushed rebase. The original PR commits have now been restored as first-parent history with a merge commit, pushed normally without force. Both the original and previously rebased commits remain reachable. The reviewed file contents are unchanged.

Review basis: main 313534b (after #199), with current logging, assertions, I/O callbacks, and GCC 14/15 CI preserved in conflict resolutions. No functional fixes to the findings above were folded into the branch update. Local checks used macOS arm64, shared Debug builds with bundled MD5 unless stated otherwise; native MSVC and glibc runtime checks were not performed.

Restore the original contribution commits as the first-parent history.
Keep the reviewed conflict resolutions and current main without rewriting published history again.
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