vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Build the tree for Windows and name the platform seams
215f8aebc38e69e621eb6f739e0cfea2ba07fd9a · Keenan Nemetz · 2d ago · parent 416739b1
Build the tree for Windows and name the platform seams `go build` for windows/amd64 failed on five unix syscall uses, and the tree had nowhere to say what a platform can and cannot do. Each unix-only site now lives in a `_unix.go` file with a Windows counterpart: disk capacity through GetDiskFreeSpaceEx, allocated bytes through GetCompressedFileSize, hard-link identity through GetFileInformationByHandle, the runner's cache lock through LockFileEx, a liveness probe through OpenProcess, and a command's process group through a helper that has no group to signal yet. Two sites cannot be ported without weakening them, so they refuse rather than pretend. File modes are a unix control and Windows needs ACLs instead, so `internal/secure` will not create or accept a secret there, and `internal/audit` will not verify a log it cannot check. The front door says the same about exec, which Windows does not have: sshd gets an explanation instead of a process that returns EWINDOWS. A CI step cross-compiles windows/amd64 and vets it, and `go vet` is what type-checks the test files that `go build` skips, so a unix-only call fails a push instead of a port nobody can start. Part of 01M8S9B86B36PE0MY8MMCRCMYA.
go.mod +1−1
| @@ -11,6 +11,7 @@ require ( | |||
| 11 | 11 | github.com/yuin/goldmark v1.8.6 | |
| 12 | 12 | golang.org/x/crypto v0.58.0 | |
| 13 | 13 | golang.org/x/net v0.61.0 | |
| 14 | golang.org/x/sys v0.49.0 | ||
| 14 | 15 | golang.org/x/term v0.47.0 | |
| 15 | 16 | gopkg.in/yaml.v3 v3.0.1 | |
| 16 | 17 | modernc.org/sqlite v1.62.0 | |
| @@ -32,7 +33,6 @@ require ( | |||
| 32 | 33 | github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect | |
| 33 | 34 | github.com/tinylib/msgp v1.6.5 // indirect | |
| 34 | 35 | github.com/x448/float16 v0.8.4 // indirect | |
| 35 | golang.org/x/sys v0.49.0 // indirect | ||
| 36 | 36 | golang.org/x/text v0.43.0 // indirect | |
| 37 | 37 | modernc.org/libc v1.80.1 // indirect | |
| 38 | 38 | modernc.org/mathutil v1.7.1 // indirect | |