mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Fleet] Fix unpackBufferToCache to avoid getting cache in a non valid state (#173201)
This commit is contained in:
parent
4936d8c6f1
commit
3fbd25ba3d
1 changed files with 1 additions and 1 deletions
|
@ -45,10 +45,10 @@ export async function unpackBufferToCache({
|
|||
contentType: string;
|
||||
archiveBuffer: Buffer;
|
||||
}): Promise<string[]> {
|
||||
const entries = await unpackBufferEntries(archiveBuffer, contentType);
|
||||
// Make sure any buffers from previous installations from registry or upload are deleted first
|
||||
clearPackageFileCache({ name, version });
|
||||
|
||||
const entries = await unpackBufferEntries(archiveBuffer, contentType);
|
||||
const paths: string[] = [];
|
||||
entries.forEach((entry) => {
|
||||
const { path, buffer } = entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue