Skip to content

Commit ca4626c

Browse files
Update release notes
1 parent 3dd27d4 commit ca4626c

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## v4.1
2-
- ?
1+
## v4.1 (unreleased)
2+
- `app`, `test`, and `xctestrun-file` now support `~`, environment variables, and globs (`*`, `**`) when resolving paths. #386
33

44
## v4.0.0
55

test_runner/src/main/kotlin/ftl/args/ArgsFileVisitor.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,11 @@ class ArgsFileVisitor(glob: String) : SimpleFileVisitor<Path>() {
3939
fun walk(searchPath: Path): List<Path> {
4040
val searchString = searchPath.toString()
4141
// /Users/tmp/code/flank/test_app/** => /Users/tmp/code/flank/test_app/
42+
// /Users/tmp/code/* => /Users/tmp/code/
4243
val beforeGlob = Paths.get(searchString.substringBefore(SINGLE_GLOB))
4344
// must not follow links when resolving paths or /tmp turns into /private/tmp
4445
val realPath = beforeGlob.toRealPath(LinkOption.NOFOLLOW_LINKS)
45-
46-
val searchDepth = if (searchString.contains(RECURSE)) {
47-
Integer.MAX_VALUE
48-
} else {
49-
1
50-
}
46+
val searchDepth = if (searchString.contains(RECURSE)) Integer.MAX_VALUE else 1
5147

5248
Files.walkFileTree(realPath, EnumSet.of(FileVisitOption.FOLLOW_LINKS), searchDepth, this)
5349
return this.result

0 commit comments

Comments
 (0)