1.9 KiB
NuGet Packaging
See docs/semver-policy.md for what a version bump on these packages is
required to mean and how a release is checked against that before it ships.
CultLib publishes the managed dependency graph as separate packages. The leaf
package is GameCult.Mesh; its NuGet dependencies preserve the CultMesh,
CultNet, and CultCache ownership boundaries.
powershell -ExecutionPolicy Bypass -File .\scripts\pack-nuget.ps1
The command packs GameCult.Mesh, GameCult.Networking.WebSockets, and every
project they reach through ProjectReference (including GameCult.Math, which
carries its own version) into a local feed under artifacts/nuget. It verifies
that each of those packages exists at the identity MSBuild reports for it, then
restores and runs a clean .NET consumer using only
PackageReference Include="GameCult.Mesh".
The Unity distribution remains org.gamecult.cultlib, built by
scripts/build-unity-package.ps1, because Unity consumes the managed assembly
closure through UPM rather than NuGet restore.
Install the Unity package from the immutable release tag:
https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v2.0.0
Rolling back across the store format
A consumer that upgrades and writes a store holding an element id leaves a
cultcache.store.v3 single-file store (v5 directory store). The first CultLib release that refuses such a store by name is cultlib-unity-v2.0.0 (caching-unity-v2.0.0). Earlier pins, the 1.x line (cultlib-unity-v1.0.61, cultlib-v1.0.32), read the header string and never compare it: rolling back to one of them reads a v3 or v5 store silently, drops the ids, and can rewrite the elements without them. That is the dangerous case. There is
no general carry-back; restore from a copy taken before upgrading, and upgrade
readers before writers. Detail: the Store format and rollback section of
src/GameCult.Caching/README.md.