refinery icon indicating copy to clipboard operation
refinery copied to clipboard

Passing a directory to refinery_core::util::find_migration_files results in a warning log message even if it only contains migrations

Open coltfred opened this issue 2 months ago • 1 comments

I have i directory structure such as:

migrations/foo
├── V1__init.sql
├── V2__colt.sql
└── V3__other_thing.sql

If I pass migrations/foo to util::find_migration_files it will print a warning saying that foo doesn't match the expected regular expression.

I think the fix could be as simple as adding min_depth(1) to the WalkDir::new(...) indicating that you don't want the root. A more robust solution would be to filter out all directories.

coltfred avatar Oct 16 '25 17:10 coltfred

I experience the same issue, anyone on this yet? Should be a quick and easy fix

LinusThorsell avatar Nov 08 '25 21:11 LinusThorsell