Content Sureness
build-binaries / build-binaries (pull_request) Successful in 2m16s
test-image / build-image (pull_request) Successful in 48s
test / test (pull_request) Successful in 1m26s

This commit is contained in:
2026-06-20 09:44:44 +02:00
parent cdbbba3181
commit 3b23910055
4 changed files with 45 additions and 2 deletions
+9 -2
View File
@@ -777,7 +777,7 @@ func chunksFromManifest(assets []assetResource, entries []BuildManifestHAK) ([]h
}
chunkAssets = append(chunkAssets, asset)
}
chunks = append(chunks, hakChunk{
chunk := hakChunk{
Config: project.HAKConfig{
Name: entry.Group,
Priority: entry.Priority,
@@ -788,7 +788,14 @@ func chunksFromManifest(assets []assetResource, entries []BuildManifestHAK) ([]h
Name: entry.Name,
Assets: chunkAssets,
Size: erf.ArchiveSize(resourceSlice(chunkAssets)),
})
}
// A manifest can name two distinct source paths that collapse to the same
// resref+type (e.g. creature/foo.mdl and placeable/foo.mdl); without this
// guard the second would silently shadow the first in the ERF.
if err := ensureUniqueChunkResources(chunk); err != nil {
return nil, err
}
chunks = append(chunks, chunk)
}
return chunks, nil
}