purescript / spago

🍝 PureScript package manager and build tool
BSD 3-Clause "New" or "Revised" License
792 stars 132 forks source link

Stuck on "Gathering all the spago configs in the tree" #1242

Closed f-f closed 4 months ago

f-f commented 4 months ago

The build hangs (or it's taking more than 1 minute) when running Glob.gitignoringGlob, so the latest patches there must be spinning in some corner case - this issue doesn't show up e.g. when building spago itself.

cc @cakekindel

Repro

f-f commented 4 months ago

Spago 0.93.32 works, but 0.93.33 hangs, so the bug is in #1234 + #1236

f-f commented 4 months ago

If I stick some logging inside the entryFilter and deepFilter functions it looks like the logs come very fast at first, and slow down gradually - it seems a hint to some quadratic complexity somewhere