Skip to content

Conversation

@YakDriver
Copy link
Member

@YakDriver YakDriver commented Sep 8, 2025

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

Fix Windows Test Coverage and Implement Cross-Platform Symlink Resolution

This PR addresses two key areas to improve the robustness and test coverage of go-getter on Windows:

  1. Removes Windows test skips for critical file and HTTP getter functionality
  2. Implements comprehensive symlink resolution with Windows junction point support

Previously, several important tests were being skipped on Windows, reducing test coverage and potentially hiding Windows-specific issues.

Cross-Platform Symlink Resolution

Implemented new symlink resolution infrastructure to handle the complexities of Windows filesystem links:

  • resolveSymlinks(src string) (string, error) windows/unix versions

All previously skipped Windows tests now pass

@YakDriver YakDriver changed the title Windows checks [fix] Windows junction handling Sep 9, 2025
@YakDriver YakDriver marked this pull request as ready for review September 9, 2025 00:30
@YakDriver YakDriver requested a review from a team as a code owner September 9, 2025 00:30

# Project-specific binaries
cmd/go-getter/go-getter
go-getter

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to confirm if we're ignoring go-getter binary or a directory named go-getter over here?
any specific reason why we're ignoring this>?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there to keep the compiled go-getter binary out of version control

@dduzgun-security dduzgun-security merged commit d2e581e into hashicorp:main Sep 17, 2025
12 checks passed
@YakDriver YakDriver deleted the f-windows-why-u-like-this branch September 17, 2025 15:15
This was referenced Sep 19, 2025
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