From 12dbaa1248e902c8b4fc719395e67973a0bec12c Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Tue, 8 Apr 2025 21:00:49 +0300 Subject: [PATCH] HACK Remove FluentReferences lint check from the engine --- fetch-engine.sh | 4 ++++ make.ps1 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/fetch-engine.sh b/fetch-engine.sh index 5850bba..8b4ca0f 100755 --- a/fetch-engine.sh +++ b/fetch-engine.sh @@ -74,6 +74,10 @@ if [ "${AUTOMATIC_ENGINE_MANAGEMENT}" = "True" ]; then rmdir "${AUTOMATIC_ENGINE_EXTRACT_DIRECTORY}" rm "${AUTOMATIC_ENGINE_TEMP_ARCHIVE_NAME}" + # HACK: Remove bogus lint check that the Example mod can't possibly pass + # because to do so it would need to define a lot of excess things surrounding resources. + rm ${ENGINE_DIRECTORY}/OpenRA.Mods.Common/Lint/CheckFluentReferences.cs + echo "Compiling engine..." cd "${ENGINE_DIRECTORY}" || exit 1 make version VERSION="${ENGINE_VERSION}" diff --git a/make.ps1 b/make.ps1 index 548adbe..8dad44f 100644 --- a/make.ps1 +++ b/make.ps1 @@ -367,6 +367,10 @@ if ($command -eq "all" -or $command -eq "clean" -or $command -eq "check") rm $env:AUTOMATIC_ENGINE_EXTRACT_DIRECTORY -r + # HACK: Remove bogus lint check that the Example mod can't possibly pass + # because to do so it would need to define a lot of excess things surrounding resources. + rm $env:ENGINE_DIRECTORY/OpenRA.Mods.Common/Lint/CheckFluentReferences.cs + cd $env:ENGINE_DIRECTORY Invoke-Expression ".\make.cmd version $env:ENGINE_VERSION" Invoke-Expression ".\make.cmd $command"