Migrations -f argument is ignored
See original GitHub issueIssue
Migrations -f argument is ignored (works in 4.1.3 but not 4.1.4/5)
Steps to Reproduce
- Run
truffle migrate -f 2
in a project with multiple migrations files.
Expected Behavior
Only migration script 2 should be run.
Actual Results
All migration scripts are run.
Environment
- Operating System: MacOS 10.13.2
- Ethereum client: ganache-cli 6.0.3
- Truffle version (
truffle version
): 4.1.5 - node version (
node --version
): 8.7.0 - npm version (
npm --version
): 5.6.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
New option to allow for 'Ignored' migrations in 'validate ...
I would like to be able to ignore "Ignored" migrations when running "validate" command. These are migrations that were added in between already ......
Read more >python/mypy - Gitter
Can I tell mypy that my module-level variable x is a Tuple of two items of ... Daniel F Moisset ... Anyway I...
Read more >How do I exclude South migrations from Pylint? - Stack Overflow
I've tried to resort to adding # pylint: disable-msg-cat=WCREFI to the top of each of my migration files. It seems very kludgy and...
Read more >How to run migrator operations - Sourcegraph docs
Successive invocations of this command will re-attempt the last failed or attempted (but incomplete) migration. This command run as if the -ignore-single-{dirty ...
Read more >Migration Operations - Django documentation
preserve_default argument indicates whether the field's default value is permanent and should be baked into the project state ( · True ), or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The code isn’t currently public, but I have created a simple dummy project that reproduces the issue.
https://github.com/craigwilliams84/truffle-test
@fawrn Have just tested
4.1.6
against the example @craigwilliams84 produced for this issue above and-f
is working as expected. If you have a chance could you run that and a) see if it works on your machine, b) identify any differences between that case and yours?I’m on OSX.