class Bundler::CompactIndexClient::CacheFile

def commit

The file is permanently closed.
Replace the original file with the temp file without verifying digests.
def commit
  raise ClosedError, "Cannot commit closed file" if @closed
  SharedHelpers.filesystem_access(original_path, :write) do
    FileUtils.mv(path, original_path)
  end
  @closed = true
end