Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with -f/--file option: CLI looks for migration directory path in current directory instead of configuration relative #438

Open
SylvanasCry opened this issue Jul 31, 2023 · 0 comments

Comments

@SylvanasCry
Copy link

Summary

The -f, --file option in the CLI program allows users to specify the path to the program's configuration file. Inside this configuration file, the path to the directory containing migrations is indicated. However, a bug has been discovered that leads to incorrect behavior of the program.

Steps to Reproduce

Run the CLI program using the -f, --file option and specify the path to the configuration file.

migrate-mongo status -f ./path/to/migrate-mongo-config.js

Actual Behavior

After specifying the -f, --file option, the program uses pwd as base path for migration directory.

Expected Behavior

After specifying the -f, --file option, the program should use the path to the migration directory specified inside the configuration file and based on its (configuration) location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant