Skip to content

fix: preserve UNC install paths on Windows - #8341

Open
dallasnetprofu02-design wants to merge 3 commits into
gogs:mainfrom
dallasnetprofu02-design:issuehunt/2550-unc-install-path
Open

fix: preserve UNC install paths on Windows#8341
dallasnetprofu02-design wants to merge 3 commits into
gogs:mainfrom
dallasnetprofu02-design:issuehunt/2550-unc-install-path

Conversation

@dallasnetprofu02-design

@dallasnetprofu02-design dallasnetprofu02-design commented Jun 8, 2026

Copy link
Copy Markdown

Fixes #2550

IssueHunt bounty: https://issuehunt.io/repos/16752620/issues/2550

Problem

On Windows, the installer normalizes backslashes to slashes before validating repository and log root paths. That breaks valid UNC share roots like \\server\share and produces the invalid-path mkdir failure reported in the issue.

Changes

  • add a small install-path normalizer that preserves native Windows UNC and drive-letter paths
  • keep the existing backslash-to-slash normalization behavior on non-Windows platforms
  • cover the Windows and non-Windows cases with focused installer route tests

Validation

  • go test ./internal/route/...
  • git diff --check

Note: go test ./... still hits the pre-existing Windows symlink privilege failure in internal/osx TestIsSymlink, which is unrelated to this installer-path change.

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.

Unable to update commits through SSH when use mounted devices

1 participant