From 9ad3731848f75e9c812cff3a215fd97b8b00209f Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Fri, 20 Jun 2025 12:10:51 -0400 Subject: [PATCH] `.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. --- src/PackageBundler/utils.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PackageBundler/utils.jl b/src/PackageBundler/utils.jl index a0df51c9e..654af5bc1 100644 --- a/src/PackageBundler/utils.jl +++ b/src/PackageBundler/utils.jl @@ -77,7 +77,7 @@ function get_bundleignore(file, top) dir = dirname(file) patterns = Set{Any}() try - while dir != top + while true if isfile(joinpath(dir, ".juliabundleignore")) union!( patterns, @@ -85,7 +85,7 @@ function get_bundleignore(file, top) ) return patterns, dir end - if dir == dirname(dir) + if dir == dirname(dir) || dir == top break end dir = dirname(dir) @@ -95,7 +95,6 @@ function get_bundleignore(file, top) end return patterns, top end - """ path_filterer(top)