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.
Name one vole on PATH instead of a checkout-local ./vole
0d8a8c55a8fa7b31abc0c17c2e60b3011ac797f2 · Keenan Nemetz · 13d ago · parent 1b1571bb
Name one vole on PATH instead of a checkout-local ./vole Contributor docs told readers to build ./vole into the checkout and run it by relative path. That left two copies of the same program in play: the one just built and the installed one used for forge operations. Nothing could tell them apart, because a source build and a release build printed the same version. A build from the source tree now prints <version>-devel+<revision>, with .dirty when the checkout has uncommitted changes, while a release build still prints the tag it was stamped with. The docs install with go install and invoke vole from PATH, so there is one binary and it says which build it is. Refs 01M7XF41G1R951ASJGKGDGM0CE.
docs/install.md +27−8
| @@ -117,21 +117,40 @@ On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure | |||
| 117 | 117 | ||
| 118 | 118 | ## Build from source | |
| 119 | 119 | ||
| 120 | Use this path when you want to change Vole. You need Git, a C compiler, Go with | ||
| 121 | toolchain management, and SQLite development headers: `libsqlite3-dev` on Debian | ||
| 122 | or Ubuntu, or `sqlite-devel` on Fedora or RHEL. `go.mod` selects Go 1.27.4 and | ||
| 123 | downloads that toolchain when needed. | ||
| 120 | Use this path when you want to change Vole. You need Git, a C compiler, and Go | ||
| 121 | with toolchain management. `go.mod` selects Go 1.27.4 and downloads that | ||
| 122 | toolchain when needed. | ||
| 123 | |||
| 124 | For a binary that matches the release build, also install the SQLite development | ||
| 125 | headers: `libsqlite3-dev` on Debian or Ubuntu, or `sqlite-devel` on Fedora or | ||
| 126 | RHEL. Then install it from a checkout: | ||
| 124 | 127 | ||
| 125 | 128 | ```sh | |
| 126 | 129 | git clone https://rodent.software/vole.git | |
| 127 | 130 | cd vole | |
| 128 | go build -tags libsqlite3,sqlite_fts5 -o vole ./cmd/vole | ||
| 129 | ./vole version | ||
| 131 | go install -tags libsqlite3,sqlite_fts5 ./cmd/vole | ||
| 132 | vole version | ||
| 133 | ``` | ||
| 134 | |||
| 135 | `go install` writes to `$(go env GOPATH)/bin`; make sure that directory is on | ||
| 136 | your `PATH`. A build from the source tree reports the revision it came from, and | ||
| 137 | a package or release build reports only its tag: | ||
| 138 | |||
| 139 | ```text | ||
| 140 | 0.2.0-devel+4f8a3da | ||
| 130 | 141 | ``` | |
| 131 | 142 | ||
| 132 | 143 | The `libsqlite3` tag links the system SQLite library, and `sqlite_fts5` enables | |
| 133 | full-text search. See `DEVELOPMENT.md` in the source repository for local builds, | ||
| 134 | tests, and a throwaway development instance. | ||
| 144 | full-text search. For a local build without SQLite development headers, omit | ||
| 145 | `libsqlite3`; the resulting binary uses the driver's bundled SQLite: | ||
| 146 | |||
| 147 | ```sh | ||
| 148 | go install -tags sqlite_fts5 ./cmd/vole | ||
| 149 | ``` | ||
| 150 | |||
| 151 | SQLite requires cgo, so do not set `CGO_ENABLED=0`. See | ||
| 152 | the source repository's `DEVELOPMENT.md` for tests and a throwaway development | ||
| 153 | instance. | ||
| 135 | 154 | ||
| 136 | 155 | ## Next | |
| 137 | 156 | ||