Repository navigation
Development
make test # vet and tests on memory and SQLite
make postgres # Postgres 18 in Docker on 127.0.0.1:55433
make test-postgres # everything
make lint # shellcheck, script tests, actionlint
make cosmos # Cosmos DB emulator in Docker on 127.0.0.1:8081
make test-cosmos # the cosmosstore module against itThe repository tests (repository_test.go) and the store suite (storetest) run on every store: memory, SQLite with a pool, SQLite with one connection, and Postgres (each test in its own schema). CI fails if the Postgres tests skip. cosmosstore is its own module (its tests and the store suite run against the Cosmos DB emulator, in the CI job cosmos, which fails if they skip).
Pull requests go into main with a merge commit; titles and commits follow Conventional Commits. A release is made by hand from main: in the Actions tab, run Release (or gh workflow run release.yml --ref main). It tags the next version from the commits since the last tag (fix: patch, feat: minor, ! major) on main's head and publishes a GitHub release; without such commits it releases nothing. Apps then use go get github.com/danielgtmn/ablage@vX.Y.Z, or @main for the latest commit.
cosmosstore is released on its own: run Release with the module cosmosstore (gh workflow run release.yml --ref main -f module=cosmosstore), which tags cosmosstore/vX.Y.Z. Its go.mod must require a released ablage version: the replace to the local copy stays (Go ignores it for apps that use cosmosstore), so development and CI always build against the ablage in the repository. When cosmosstore needs something new from ablage, release ablage first, require that version in cosmosstore/go.mod, merge, then release cosmosstore.
A Go version is just a git tag, and the Go module proxy keeps every version it has seen for good: a published version cannot be changed or deleted, only marked as retracted in go.mod. So release on purpose, when main is in a state worth keeping.
Rules and conventions: AGENTS.md. Pull requests: CONTRIBUTING.md.
ablage · Apache-2.0