Skip to content

Dry run (-n) error if the builddir directory does not exist in 1.12.0 #2431

Closed

Description

@sean-eveson-sony

Hi. I'm using Ninja 1.12.0 on Windows.

Since 1.12.0 dry run commands will produce an error such as error: WriteFile(ninja_builddir/.ninja_lock): Unable to create file. No such file or directory if the builddir directory does not already exist. I reproduced the error with a simple build.ninja file and running ninja -n:

builddir = ninja_builddir

rule cc
    command = clang -c $in -o $out

build test.obj: cc test.cpp

Thanks!

Activity

  1. added this to the 1.13.0 milestone on Apr 30, 2024
  2. jhasse commented on May 5, 2024

    @jhasse
    Collaborator

    I think we should fix this regression and then release 1.12.1. Help wanted :)

  3. jhasse commented on May 5, 2024

    @jhasse
    Collaborator

    @jdrouhard can you have a look?

  4. modified the milestones: 1.13.0, 1.12.1 on May 11, 2024
  5. added theissue type on May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址