lungo generate replaces an output directory while other programs list it. On macOS,
replacing an output that something else was reading — an indexer, a build reading the
generated sources — could fail with error[LNG0105]: cannot remove …/.<name>.lungo-previous-<pid>: Directory not empty, leaving part of the old output beside the new one. lungo now reads each
directory to the end before removing anything from it, so the old output is removed whole
whatever lists it meanwhile. A directory that something writes into while lungo removes it is
an error naming the directory and what appeared in it.
The same removal is used wherever lungo clears a directory of its own: a stale worker, the
WebAssembly and oracle build folders, an unpacked runtime, elan or update download, and
lungo-dist‘s distribution folders.
Packages
The Python, TypeScript, Go and Swift libraries, the Rust crates, and the apt, rpm and
Homebrew packages are released at this version, the same as the runtime and the command,
with every change since their last release (1.127.0).
Rust library
lungo_driver::remove_tree removes a directory tree, reading each directory to its end
before removing any of its entries, and never following a symbolic link.