pressly / goose

A database migration tool. Supports SQL migrations and Go functions.
http://pressly.github.io/goose/
Other
7.09k stars 520 forks source link

goose validate: no such command #807

Open Arr-n-D opened 2 months ago

Arr-n-D commented 2 months ago

I've built a custom goose binary for embedding Go migrations.

When running my binary and running the validate command, I get an error claiming that validate does not exist.

My code depends on v3@v3.21.1, and when looking at goose.go, the validate function indeed does not exist, as seen here https://github.com/pressly/goose/blob/master/goose.go#L67

mfridman commented 2 months ago

Indeed, this was never exposed beyond the pre-built goose CLI.

yoyrandao commented 1 month ago

Indeed, this was never exposed beyond the pre-built goose CLI.

But why?) Why I can't use it from self-build binary?

mfridman commented 1 month ago

Not a good reason. It was an experimental command, but if there's enough demand, I'm happy to make it part of the stable API. Just need to fix a minor bug.