Skip to content

test debug mode can break sqlite3 #151

@turadg

Description

@turadg

Problem

better_sqlite3.node is a binary dependency of many proposals. It's built with node-gyp and links to the Node binary.

The --debug option for the test command mounts the local filesystem on top of the Docker container's. If the local fs has a node_modules with an incompatible sqlite3 binary then you'll see an error like,

  Error {
    code: 'ERR_DLOPEN_FAILED',
    message: '/usr/src/proposals/a:upgrade-next/node_modules/better-sqlite3/build/Release/better_sqlite3.node: invalid ELF header',
  }

Workaround

Run yarn install within the Docker container to rebuild deps.

Long term fix

TBD. The local fs should have a node_modules so that types resolve. Ideally we could ignore node_modules through the mount. I don't know yet whether that's possible. @toliaqat ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions