google / google/kati

Ninja mkdir elision doesn't handle non-canonical paths

Open
#114 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1k
Forks
132
Avg merge
11m
Merged PRs (30d)
1

Description

I'll take a look at this next week, but logging this before I forget:

```
test: a/b/../c

a/b/../c:
@mkdir -p $(dir $@)
touch a/b/../c
```

Ninja canonicalizes the path before making the directories, so only `a` is created. In make, `mkdir -p a/b/../c` would create `a` and `a/b`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.