Skip to content

Commit

Permalink
Add support for relative paths for exclusions
Browse files Browse the repository at this point in the history
Includes already support relative paths, but excludes don't. This means if you did something like

```
targets:
  Foo:
    sources:
      path: ../Foo
      excludes:
        - ../Foo/Bar
```

then it wouldn't work. This fix corrects that issue.
  • Loading branch information
dalemyers authored Feb 22, 2024
1 parent 2a367ac commit 8034422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/XcodeGenKit/SourceGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class SourceGenerator {
patterns.parallelMap { pattern in
guard !pattern.isEmpty else { return [] }
return Glob(pattern: "\(rootSourcePath)/\(pattern)")
.map { Path($0) }
.map { Path($0).absolute() }
.map {
guard $0.isDirectory else {
return [$0]
Expand Down

0 comments on commit 8034422

Please sign in to comment.