Skip to content

Commit 9ad3731

Browse files
authored
.juliabundleignore should apply to top-level files, too
The appbundle's `.juliabundleignore` was previously not picking up for files in the same directory. This is a simple change to effectively make the loop a do-while.
1 parent ec56e19 commit 9ad3731

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PackageBundler/utils.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ function get_bundleignore(file, top)
7777
dir = dirname(file)
7878
patterns = Set{Any}()
7979
try
80-
while dir != top
80+
while true
8181
if isfile(joinpath(dir, ".juliabundleignore"))
8282
union!(
8383
patterns,
8484
Glob.FilenameMatch.(strip.(readlines(joinpath(dir, ".juliabundleignore")))),
8585
)
8686
return patterns, dir
8787
end
88-
if dir == dirname(dir)
88+
if dir == dirname(dir) || dir == top
8989
break
9090
end
9191
dir = dirname(dir)
@@ -95,7 +95,6 @@ function get_bundleignore(file, top)
9595
end
9696
return patterns, top
9797
end
98-
9998
"""
10099
path_filterer(top)
101100

0 commit comments

Comments
 (0)