Skip to content

Check-only mode for rewriting migrations.toml #40

@antifuchs

Description

@antifuchs

I'm trying to build a rust crate using nix's crane library, which breaks the build into two parts:

  1. It builds all the dependencies with a "stub" crate in one temporary build dir,
  2. packages up the target/ directory,
  3. builds the "main" crate with the previous target/ directory in place, in a second temporary build dir

This usually works great, but with turbosql, there is an issue: In the third step, it attempts to write to the migrations.toml into the build dir from the first step.

I'm not sure why it picks the wrong build dir, but I feel like this is not ideal in any case: For these builds, I'd love to be able to turn off turbosql re-writing the migrations.toml file, in favor of checking that it's the same as the one that it would be writing - somewhat like the "locked" mode in yarn or cargo.

Does that make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions