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.
Run and fix the test suite on macOS
30672859d26d65bc8a3075d6d075c1ac594eb924 · Keenan Nemetz · 7d ago · parent 6c694920
Run and fix the test suite on macOS Run the unit suite on a Mac and fix the three platform bugs only runtime execution can reveal: - BSD wc -l pads its count, so a secret-log assertion that matched busybox output failed. Strip the padding in the step. - os.UserCacheDir ignores XDG_CACHE_HOME on macOS, so the cache tests pointed at a directory the run never used. Override HOME and ask UserCacheDir. - A Unix socket path in t.TempDir() exceeds macOS's 103-byte limit. Use a short nameless directory instead. Add scripts/check-macos.sh, the one command a maintainer runs on a Mac before signing off a macOS artifact, and document it in RELEASING.md.
server/secret_test.go +1−1
| @@ -261,7 +261,7 @@ jobs: | |||
| 261 | 261 | image: alpine:3.22 | |
| 262 | 262 | secrets: [DEPLOY_TOKEN, NOT_SET] | |
| 263 | 263 | steps: | |
| 264 | - run: printf 'length=%s newlines=%s missing=%s\n' "${#DEPLOY_TOKEN}" "$(printf %s "$DEPLOY_TOKEN" | wc -l)" "${NOT_SET-unset}" | ||
| 264 | - run: printf 'length=%s newlines=%s missing=%s\n' "${#DEPLOY_TOKEN}" "$(printf %s "$DEPLOY_TOKEN" | wc -l | tr -d ' ')" "${NOT_SET-unset}" | ||
| 265 | 265 | - run: printf 'echoed=%s\n' "$DEPLOY_TOKEN" | |
| 266 | 266 | `)) | |
| 267 | 267 | if _, errs, err := f.git(work, "push", f.sshURL(f.repo), "main:refs/heads/main"); err != nil { | |