Files
wehub-resource-sync a06f331eb8
CI / benchmark (push) Has been skipped
install-script / posix-syntax (push) Successful in 6m1s
CI / build-onnx (push) Failing after 6m43s
init-smoke / dry-run (push) Failing after 15m57s
security / govulncheck (push) Has been cancelled
security / trivy-fs (push) Has been cancelled
CI / test (1.26, ubuntu-latest) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
CI / test (1.26, macos-latest) (push) Has been cancelled
CI / build-windows (push) Has been cancelled
CI / lint (push) Has been cancelled
install-script / powershell-syntax (push) Has been cancelled
install-script / install (macos-14) (push) Has been cancelled
install-script / install (ubuntu-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:33:42 +08:00
..

Vendored: github.com/google/renameio

This directory is a vendored copy of github.com/google/renameio v1.0.1, licensed under Apache-2.0 (see LICENSE).

It is wired into the build via a replace directive in the repository root go.mod:

replace github.com/google/renameio => ./internal/thirdparty/renameio

Why it is vendored

renameio v1.0.1 builds only on non-Windows platforms — tempfile.go and writefile.go are tagged // +build !windows, so the package exports nothing for GOOS=windows. github.com/coder/hnsw (a transitive dependency of Gortex's internal/search vector index) imports renameio unconditionally, which made the whole module impossible to compile for Windows. Upstream moved Windows support to the separate renameio/v2 module and froze the v1 line, so a plain version bump is not an option.

Modifications by the Gortex project

The upstream files — doc.go, tempfile.go, writefile.go, go.mod, LICENSE — are reproduced verbatim. Two files were added to provide the missing Windows implementation:

  • tempfile_windows.goTempDir, tempDir, PendingFile, TempFile, and Symlink for Windows, built on os.CreateTemp plus os.Rename (which maps to MoveFileEx with MOVEFILE_REPLACE_EXISTING, an atomic replace).
  • writefile_windows.go — the Windows half of WriteFile.

No upstream file was changed.