Skip to content

fix(windows): remove remaining SYMLINK guards missed by #607#608

Merged
javi11 merged 1 commit into
javi11:mainfrom
fatbob01:main
May 22, 2026
Merged

fix(windows): remove remaining SYMLINK guards missed by #607#608
javi11 merged 1 commit into
javi11:mainfrom
fatbob01:main

Conversation

@fatbob01
Copy link
Copy Markdown
Contributor

Summary

#607 removed the Windows SYMLINK guards from symlink_creator.go and health_handlers.go but two more remained that prevent altmount from starting or functioning on Windows:

  • internal/config/manager.go: startup config validator rejects import_strategy: SYMLINK on Windows with "SYMLINK is not supported on Windows; use STRM instead" — the binary exits immediately without serving
  • internal/health/library_sync.go: guard blocks symlink updates during library sync on Windows

Both blocks follow the same runtime.GOOS == "windows" pattern as the ones removed in #607. Also removed the now-unused "runtime" imports from both files.

Test plan

  • go build ./... clean on Windows
  • altmount starts successfully with import_strategy: SYMLINK on Windows
  • Symlinks created correctly on import

javi11#607 removed the guards in symlink_creator.go and health_handlers.go
but two more remained:
- internal/config/manager.go: validator rejecting SYMLINK on Windows at startup
- internal/health/library_sync.go: guard blocking symlink updates in library sync

Remove both blocks and their now-unused runtime imports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fatbob01
Copy link
Copy Markdown
Contributor Author

Found these while testing #607 on Windows — the binary wouldn't start at all due to the validator in manager.go rejecting SYMLINK at boot. The library_sync.go one would have surfaced later during library sync. Both follow the same pattern as what was removed in #607.

@javi11 javi11 merged commit 5b9fc1f into javi11:main May 22, 2026
2 checks passed
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.

2 participants