Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error when absolute path is provied in 'pgmigrate new --migration…
…s' (#2) A possible fix for #1. Not sure why we need `filepath.Rel` at all. `os.WriteFile` works with both absolute and relative paths, so user can provide either and it should work out of the box. Smoke test after the fix: ``` ./main new --migrations $(pwd)/example/migrations INFO created id=00004_generated path=/Users/vvkh/Projects/pgmigrate/example/migrations/00004_generated.sql ./main new --migrations example/migrations INFO created id=00004_generated path=example/migrations/00004_generated.sql ```
- Loading branch information