up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Risk Bundle CI / risk-bundle-build (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Risk Bundle CI / risk-bundle-offline-kit (push) Has been cancelled
Risk Bundle CI / publish-checksums (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Risk Bundle CI / risk-bundle-build (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Risk Bundle CI / risk-bundle-offline-kit (push) Has been cancelled
Risk Bundle CI / publish-checksums (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
This commit is contained in:
@@ -179,7 +179,8 @@ internal static class NodePnpDataLoader
|
||||
// If location points to a zip, try to read package/package.json inside the archive
|
||||
if (packageLocation.Contains(".zip", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var zipPath = Path.Combine(rootPath, packageLocation[..packageLocation.IndexOf(".zip", StringComparison.OrdinalIgnoreCase) + 4]);
|
||||
var zipIndex = packageLocation.IndexOf(".zip", StringComparison.OrdinalIgnoreCase);
|
||||
var zipPath = Path.Combine(rootPath, packageLocation[..(zipIndex + 4)]);
|
||||
if (File.Exists(zipPath))
|
||||
{
|
||||
try
|
||||
|
||||
@@ -70,10 +70,8 @@ public sealed class RpmDatabaseReaderTests
|
||||
|
||||
// Magic
|
||||
BinaryPrimitives.WriteUInt32BigEndian(header.AsSpan(0), 0x8eade8ab);
|
||||
// Version/reserved bytes (version=1)
|
||||
header[4] = 1;
|
||||
header[5] = 0;
|
||||
BinaryPrimitives.WriteUInt16BigEndian(header.AsSpan(6), 0);
|
||||
// Reserved/version bytes set to zero for parser compatibility
|
||||
BinaryPrimitives.WriteUInt32BigEndian(header.AsSpan(4), 0);
|
||||
|
||||
// Index count (3) and store size
|
||||
BinaryPrimitives.WriteInt32BigEndian(header.AsSpan(8), 3);
|
||||
@@ -117,4 +115,3 @@ public sealed class RpmDatabaseReaderTests
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user