seed-embedded-postgres

command
v1.1.65-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command seed-embedded-postgres fills the embedded-postgres binary cache at image build time.

github.com/fergusstrange/embedded-postgres downloads a postgres build from Maven Central the first time a test starts a server, and caches it under $HOME/.embedded-postgres-go. CI containers start with that cache empty, so every test run fetched the jar again, and any non-200 from the repository failed the suite — reported as "no version found matching <version>", which the library returns for any bad status, not just a missing artifact. Seeding the cache while the image is built means the tests themselves never reach the network.

Run it with the postgres versions a service's tests ask for:

go run .../seed-embedded-postgres 14.13.0

Only the standard library is used, so it runs with `go run <file>` from anywhere, with no module context and nothing to download first.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL