From cec589d94db579a2abcf78cd35398ef186ed917c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 18 Aug 2026 10:50:24 +0200 Subject: [PATCH] Pin a reproducible EveUnity git consumer --- ReleaseConsumerProject/Packages/manifest.json | 8 +++---- .../Packages/packages-lock.json | 24 +++++++++---------- scripts/run-release-consumer-tests.ps1 | 10 +++++++- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/ReleaseConsumerProject/Packages/manifest.json b/ReleaseConsumerProject/Packages/manifest.json index 07406db..683f069 100644 --- a/ReleaseConsumerProject/Packages/manifest.json +++ b/ReleaseConsumerProject/Packages/manifest.json @@ -6,11 +6,11 @@ "com.unity.modules.physics": "1.0.0", "com.unity.modules.uielements": "1.0.0", "com.unity.render-pipelines.universal": "17.4.0", - "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.45", + "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#21163d83fa2670dbcc9cdd57c6c1776b33a91d62", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", - "org.gamecult.eve.surface": "https://github.com/GameCult/Eve.git?path=/packages/org.gamecult.eve.surface#eve-surface-v0.3.0", - "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#50cd42137a1b94fa8c578918463ddcd822d2bfc9", - "org.gamecult.eve.unity-uitoolkit": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#50cd42137a1b94fa8c578918463ddcd822d2bfc9" + "org.gamecult.eve.surface": "https://github.com/GameCult/Eve.git?path=/packages/org.gamecult.eve.surface#e7b09f755de2fa54e2c5936331e3a03839a13cd1", + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#82b48cd089b55e47f5112b2801f2eb48c1c002dc", + "org.gamecult.eve.unity-uitoolkit": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#82b48cd089b55e47f5112b2801f2eb48c1c002dc" }, "testables": [ "org.gamecult.eve.unity-scene", diff --git a/ReleaseConsumerProject/Packages/packages-lock.json b/ReleaseConsumerProject/Packages/packages-lock.json index 4510f6a..f155b89 100644 --- a/ReleaseConsumerProject/Packages/packages-lock.json +++ b/ReleaseConsumerProject/Packages/packages-lock.json @@ -119,11 +119,11 @@ } }, "org.gamecult.cultlib": { - "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.45", + "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#21163d83fa2670dbcc9cdd57c6c1776b33a91d62", "depth": 0, "source": "git", "dependencies": {}, - "hash": "03840d0430bc727f1322861a1ab46b396eaca860" + "hash": "21163d83fa2670dbcc9cdd57c6c1776b33a91d62" }, "org.gamecult.eve.plugin-fields": { "version": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", @@ -135,37 +135,37 @@ "hash": "c5a4a75c1b727499b16c2dae1895f29e2a9f72f0" }, "org.gamecult.eve.surface": { - "version": "https://github.com/GameCult/Eve.git?path=/packages/org.gamecult.eve.surface#eve-surface-v0.3.0", + "version": "https://github.com/GameCult/Eve.git?path=/packages/org.gamecult.eve.surface#e7b09f755de2fa54e2c5936331e3a03839a13cd1", "depth": 0, "source": "git", "dependencies": { "org.gamecult.cultlib": "1.0.45" }, - "hash": "fe0dddf28267decbb416325a3d0b2c62432825c2" + "hash": "e7b09f755de2fa54e2c5936331e3a03839a13cd1" }, "org.gamecult.eve.unity-scene": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#50cd42137a1b94fa8c578918463ddcd822d2bfc9", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#82b48cd089b55e47f5112b2801f2eb48c1c002dc", "depth": 0, "source": "git", "dependencies": { - "org.gamecult.cultlib": "1.0.45", + "org.gamecult.cultlib": "1.0.47", "org.gamecult.eve.plugin-fields": "0.2.3", - "org.gamecult.eve.surface": "0.3.0", - "org.gamecult.eve.unity-uitoolkit": "0.1.3", + "org.gamecult.eve.surface": "0.3.2", + "org.gamecult.eve.unity-uitoolkit": "0.1.4", "com.unity.mathematics": "1.3.2", "com.unity.render-pipelines.universal": "17.4.0", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "50cd42137a1b94fa8c578918463ddcd822d2bfc9" + "hash": "82b48cd089b55e47f5112b2801f2eb48c1c002dc" }, "org.gamecult.eve.unity-uitoolkit": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#50cd42137a1b94fa8c578918463ddcd822d2bfc9", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-uitoolkit#82b48cd089b55e47f5112b2801f2eb48c1c002dc", "depth": 0, "source": "git", "dependencies": { - "org.gamecult.eve.surface": "0.3.0" + "org.gamecult.eve.surface": "0.3.2" }, - "hash": "50cd42137a1b94fa8c578918463ddcd822d2bfc9" + "hash": "82b48cd089b55e47f5112b2801f2eb48c1c002dc" }, "com.unity.modules.assetbundle": { "version": "1.0.0", diff --git a/scripts/run-release-consumer-tests.ps1 b/scripts/run-release-consumer-tests.ps1 index aa57c7f..c726a30 100644 --- a/scripts/run-release-consumer-tests.ps1 +++ b/scripts/run-release-consumer-tests.ps1 @@ -5,9 +5,16 @@ param( $ErrorActionPreference = "Stop" $repoRoot = Split-Path -Parent $PSScriptRoot -$projectPath = "ReleaseConsumerProject" +$sourceProjectPath = Join-Path $repoRoot "ReleaseConsumerProject" $results = if ([IO.Path]::IsPathRooted($ResultsPath)) { $ResultsPath } else { Join-Path $repoRoot $ResultsPath } New-Item -ItemType Directory -Force -Path (Split-Path -Parent $results) | Out-Null +$runRoot = Join-Path (Split-Path -Parent $results) ("release-consumer-" + (Get-Date -Format "yyyyMMddTHHmmss")) +$projectPath = Join-Path $runRoot "consumer" +New-Item -ItemType Directory -Force -Path (Join-Path $projectPath "Packages") | Out-Null +Copy-Item -LiteralPath (Join-Path $sourceProjectPath "Assets") -Destination (Join-Path $projectPath "Assets") -Recurse +Copy-Item -LiteralPath (Join-Path $sourceProjectPath "ProjectSettings") -Destination (Join-Path $projectPath "ProjectSettings") -Recurse +Copy-Item -LiteralPath (Join-Path $sourceProjectPath "Packages\manifest.json") ` + -Destination (Join-Path $projectPath "Packages\manifest.json") $logPath = [IO.Path]::ChangeExtension($results, ".log") $arguments = @( "-batchmode", "-projectPath", $projectPath, @@ -31,3 +38,4 @@ if (-not (Test-Path $results)) { throw "Unity did not produce release consumer t $result = $report.'test-run'.result if ($result -ne "Passed") { throw "Released EveUnity package consumer result was '$result'." } Write-Host "Released EveUnity package consumer passed: $results" +Write-Host "Isolated git consumer: $projectPath"