question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrations -f argument is ignored

See original GitHub issue

Issue

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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
craigwilliams84commented, Apr 5, 2018

The code isn’t currently public, but I have created a simple dummy project that reproduces the issue.

https://github.com/craigwilliams84/truffle-test

0reactions
cgeweckecommented, Apr 19, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found