Skip to content

Dir node target not handled correctly #2699

Open

Description

@bdbaddog

This issue was originally created at: 2010-09-30 02:01:53.
This issue was reported by: dwild.

dwild said at 2010-09-30 02:01:53

The action of a builder is not called if the target is a directory.

See the following example:

env = Environment()
targ = env.Dir('out')
env.Command(targ, 'blub.txt', "mkdir $TARGET")

Changes of 'blub.txt' don't cause the action to be executed. The action is only executed if 'out' were not existing.

gregnoel said at 2010-11-14 18:17:09

Bug party triage. In common with other build systems, existing directories are always considered up-to-date. However, implementing containers should deal with this situation more gracefully.

*** This issue has been marked as a duplicate of 2536 ***

gregnoel said this issue is a duplicate of #2536 at 2010-11-14 18:17:09.

Activity

  1. mwichmann commented on Nov 17, 2026

    @mwichmann
    Collaborator

    After some research, it seems unfair that a real problem was "closed as a duplicate" in favor of a design that never progressed. So reopening this. We do collect information that is useful for the case when a Dir isn't intended for MkdirBuilder, so "existing directories are always up to date" doesn't have to be true.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions