Skip to content

Commit 080a368

Browse files
committed
fix: prevent recursive nesting in minified directories
- Skip bundled files that are already in min/min-bundled paths - Remove nested cp-algo directories from min-bundled and min - Prevents minifying already-minified files from previous runs
1 parent b1049fa commit 080a368

File tree

719 files changed

+6
-58572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

719 files changed

+6
-58572
lines changed

.verify-helper/scripts/generate_minified.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ def main():
197197
if 'verify' in bundled_file.parts:
198198
continue
199199

200+
# Skip files that are already in min or min-bundled directories
201+
# (these would be from previous minification runs in the bundled dir)
202+
rel_path_str = str(bundled_file.relative_to(bundled_dir))
203+
if '/min/' in rel_path_str or '/min-bundled/' in rel_path_str:
204+
continue
205+
200206
if bundled_file.is_file() and bundled_file.suffix in ['.hpp', '.cpp', '.h']:
201207
total_bundled += 1
202208

cp-algo/min-bundled/cp-algo/geometry/closest_pair.hpp

Lines changed: 0 additions & 97 deletions
This file was deleted.

cp-algo/min-bundled/cp-algo/geometry/convex_hull.hpp

Lines changed: 0 additions & 84 deletions
This file was deleted.

cp-algo/min-bundled/cp-algo/geometry/point.hpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)