Closed tusharsadhwani closed 2 months ago
You could run your removal algorithm iteratively until no more changes happen. It's basically just running it multiple times but automatically.
That is indeed the plan, I'll implement that very soon.
On a completely different note, I'm struggling to find the best way that users can integrate zigimports
into their projects. I was wondering if making it a part of your build.zig.zon
file and then having a simple way to add a zig build lint
command that just runs zigimports
would be possible.
Sofar what I've found is that if you create a tools/lint.zig
file in your project it is trivial to add a zig build lint
command. But I am trying to avoid making the users do that much work for setup.
Fixed this in https://github.com/tusharsadhwani/zigimports/commit/10dfc7c6b982c33b9968939e7888f58a6bb247ce, it's not the most efficient, but it should do for now.
From zine:
Probably happens because of this:
After running
zigimports --fix
: