benedekfazekas / mranderson

Dependency inlining and shadowing
Eclipse Public License 1.0
151 stars 14 forks source link

Fix intermitent broken files when inlining #74

Closed lread closed 2 years ago

lread commented 2 years ago

We had a wee bug which caused duplicate processing of the same source file for a single ns rename. Since we are, by default, processing files in parallel, this can lead to corrupt results.

This change:

And also:

Extra Testing

I did some extra testing using cider-nrepl v0.28.6 on macOS using Temurin 17.0.4.1 JDK. I ran 100 inline-dep generation runs against:

I compared target/srcdeps.

current:

new:

Closes #56

benedekfazekas commented 2 years ago

this is a very wlc PR 👏 . will have a proper look shortly

lread commented 2 years ago

@vemv thanks for taking time to review, much appreciated!

lread commented 2 years ago

Ok @benedekfazekas, I've address @vemv's feedback, lemme know if you'd like any further changes.

benedekfazekas commented 2 years ago

thank you @lread much appreciated!

lread commented 2 years ago

My pleasure @benedekfazekas, glad to be of help!