Skip to content

Getting started

Install colophon and find out what it would release.

Install

CGO_ENABLED=0 go install gitlab.com/phpboyscout/colophon/cmd/colophon@latest

CGO_ENABLED=0 is needed. colophon's Discord adapter builds voice support in whenever cgo is on, and that needs the system library libdave, which colophon never uses. Without the setting, go install fails on any machine with a C compiler and no libdave, the stock Go images and GitHub's runners included. colophon's release binaries are built without cgo too.

On Windows, set the variable before running go install: $env:CGO_ENABLED=0 in PowerShell, or set CGO_ENABLED=0 in cmd. Where cgo has to stay on, add -tags discord_novoice to the go install instead, which leaves the voice support out by itself.

The main package lives at cmd/colophon/, so the install path ends in /cmd/colophon. Installing the module root fails, because the root has no main package.

In a pipeline, pin the tag rather than tracking @latest. colophon decides what ships, so a job installing @latest can change that decision without a commit saying so, and below 1.0 the CLI surface may still move between minor versions.

CGO_ENABLED=0 go install gitlab.com/phpboyscout/colophon/cmd/[email protected]

Release binaries are attached to each release if you would rather not build from source.

Check it runs

colophon version

Ask what would be released

plan reads a repository and prints the release its commits have earned. It writes nothing at all: no branch, no merge request, no tag. It needs no credentials, so it is safe to run against any checkout you have.

colophon plan

Point it somewhere else with -C:

colophon plan -C ~/src/some-project

Where to go next