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
Make using v8flags package optional #2643
Conversation
@GabrielCastro Crash on node 8 is probably random, rerunning tests should resolve it. |
I can't seem to find existing tests for the cli, could you point me in the right direction. |
@GabrielCastro Doesn't look like any exist at this point; you don't have to cover all of the functionality with tests, just the new stuff should be ok :). |
@GabrielCastro You can take a look at #2884 for CLI tests, we finally have an example of how to do it! |
@GabrielCastro Status update :)? |
I'm also interested in this fix. The not-so-great workaround was to define the environment variable |
@markmsmith Would you consider rebasing the PR? |
I'm currently talking with my company's legal to department to get approval to contribute (if the original author doesn't come back). Do you have any kind of CLA that needs signed? |
Nope, we don't have anything like that. |
@GabrielCastro This still needs to be documented. Could you please add documentation PR to https://github.com/knex/documentation? |
v8flags = require('v8flags'); | ||
} | ||
|
||
var cli = new Liftoff({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be const
name: 'knex', | ||
extensions: interpret.jsVariants, | ||
v8flags: require('v8flags'), | ||
v8flags: v8flags, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be just v8flags
@markmsmith Ping?.. |
v8flags was removed, so this is no longer relevant |
The v8flags package requires a file to be opened in read/write mode,
we want to be able to run knex cli migrate inside a contains with a read-only file system