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.
CONTRIBUTING.md +20−17
| @@ -15,14 +15,17 @@ From the repository root, run: | |||
| 15 | 15 | ||
| 16 | 16 | ```sh | |
| 17 | 17 | git remote -v | |
| 18 | ./vole whoami | ||
| 19 | ./vole whoami --role | ||
| 20 | ./vole version | ||
| 18 | vole whoami | ||
| 19 | vole whoami --role | ||
| 20 | vole version | ||
| 21 | 21 | ``` | |
| 22 | 22 | ||
| 23 | 23 | - The forge is the instance named by `origin`; do not assume it is GitHub. | |
| 24 | - Use `./vole` when the repository root contains that binary. Otherwise, use | ||
| 25 | `vole` from `PATH`. | ||
| 24 | - Use the `vole` on your `PATH`. [DEVELOPMENT.md](DEVELOPMENT.md) covers building | ||
| 25 | and installing it. Do not build a second copy into the checkout. | ||
| 26 | - `vole version` prints a `-devel` version with the revision you built from, and | ||
| 27 | a package or release build prints only its tag, so the output tells you whether | ||
| 28 | you are running this checkout's build or an installed release. | ||
| 26 | 29 | - `whoami` prints the account your SSH key resolves to. If it fails, ask for the | |
| 27 | 30 | correct credentials or instance; do not substitute the name in `git config`. | |
| 28 | 31 | - `whoami --role` prints your effective role on the repository named by | |
| @@ -36,23 +39,23 @@ repository. If a tool assumes GitHub, adapt it to this workflow or ask for help. | |||
| 36 | 39 | Read the open work before starting something new: | |
| 37 | 40 | ||
| 38 | 41 | ```sh | |
| 39 | ./vole issue list --state open --format '%(number) %(title)' | ||
| 40 | ./vole issue show <number> | ||
| 42 | vole issue list --state open --format '%(number) %(title)' | ||
| 43 | vole issue show <number> | ||
| 41 | 44 | ``` | |
| 42 | 45 | ||
| 43 | 46 | You can filter by label, for example: | |
| 44 | 47 | ||
| 45 | 48 | ```sh | |
| 46 | ./vole issue list --state open -l bug --format '%(number) %(title)' | ||
| 49 | vole issue list --state open -l bug --format '%(number) %(title)' | ||
| 47 | 50 | ``` | |
| 48 | 51 | ||
| 49 | 52 | File an issue when no existing issue covers the work: | |
| 50 | 53 | ||
| 51 | 54 | ```sh | |
| 52 | ./vole issue new \ | ||
| 55 | vole issue new \ | ||
| 53 | 56 | --title "Short, specific title" \ | |
| 54 | 57 | -m "Explain the problem, scope, and acceptance criteria." \ | |
| 55 | -a "$(./vole whoami)" | ||
| 58 | -a "$(vole whoami)" | ||
| 56 | 59 | ``` | |
| 57 | 60 | ||
| 58 | 61 | Use `-F <file>` instead of `-m` for a multiline Markdown body. Add labels with | |
| @@ -63,13 +66,13 @@ repeated `-l` options. Existing labels include `bug`, `security`, `ci`, `web`, | |||
| 63 | 66 | Assign an existing issue to yourself before working on it: | |
| 64 | 67 | ||
| 65 | 68 | ```sh | |
| 66 | ./vole issue assign <id> "$(./vole whoami)" | ||
| 69 | vole issue assign <id> "$(vole whoami)" | ||
| 67 | 70 | ``` | |
| 68 | 71 | ||
| 69 | 72 | If the approach is unclear, discuss it on the issue before writing code: | |
| 70 | 73 | ||
| 71 | 74 | ```sh | |
| 72 | ./vole issue comment <id> -m "I plan to …" | ||
| 75 | vole issue comment <id> -m "I plan to …" | ||
| 73 | 76 | ``` | |
| 74 | 77 | ||
| 75 | 78 | Issues and change requests share one number sequence. Use `#42` when reading, | |
| @@ -110,7 +113,7 @@ branch; the CLI and server maintain its files and validation rules. | |||
| 110 | 113 | Open a request from the pushed branch: | |
| 111 | 114 | ||
| 112 | 115 | ```sh | |
| 113 | ./vole change new \ | ||
| 116 | vole change new \ | ||
| 114 | 117 | --title "Short, specific title" \ | |
| 115 | 118 | --base main \ | |
| 116 | 119 | --head <branch> \ | |
| @@ -123,13 +126,13 @@ issues; writing `Fixes #42` in the description is only prose. You can replace | |||
| 123 | 126 | the links while the request is open: | |
| 124 | 127 | ||
| 125 | 128 | ```sh | |
| 126 | ./vole change update <id> --closes <issue-number> | ||
| 129 | vole change update <id> --closes <issue-number> | ||
| 127 | 130 | ``` | |
| 128 | 131 | ||
| 129 | 132 | Inspect the request and its review state with: | |
| 130 | 133 | ||
| 131 | 134 | ```sh | |
| 132 | ./vole change show <id> | ||
| 135 | vole change show <id> | ||
| 133 | 136 | ``` | |
| 134 | 137 | ||
| 135 | 138 | A request follows its source branch. Pushing another commit moves the request to | |
| @@ -143,14 +146,14 @@ different branch or pin the request to a commit. | |||
| 143 | 146 | Validate workflow files before pushing: | |
| 144 | 147 | ||
| 145 | 148 | ```sh | |
| 146 | ./vole workflow check | ||
| 149 | vole workflow check | ||
| 147 | 150 | ``` | |
| 148 | 151 | ||
| 149 | 152 | Run the same verification workflow CI uses when a container runtime is | |
| 150 | 153 | available: | |
| 151 | 154 | ||
| 152 | 155 | ```sh | |
| 153 | ./vole workflow run verify | ||
| 156 | vole workflow run verify | ||
| 154 | 157 | ``` | |
| 155 | 158 | ||
| 156 | 159 | The workflow covers formatting, vet, build, dependency licenses, reachable | |