class Bundler::CompactIndexClient::CacheFile

def close

The file is permanently closed.
Remove the temp file without replacing the original file.
def close
  return if @closed
  FileUtils.remove_file(path) if @path&.file?
  @closed = true
end