Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

gitignore: scripts/unity_compile build output and unity/.vsconfig (after #2181) (#2191)

Eyal Golanbbe61039dba5
diff --git a/.gitignore b/.gitignore
index 4b385293f..e0606a5d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -87,6 +87,11 @@ Unity_v*.alf
.idea/
unity/obj/
unity/MemoryCaptures/
+# dotnet restore/build output beside scripts/unity_compile's .csproj files, and Visual Studio's workload hint that
+# com.unity.ide.visualstudio writes on open (#2181 committed both by accident).
+scripts/unity_compile/obj/
+scripts/unity_compile/bin/
+unity/.vsconfig
# Existing local hex art used by opt-in previews; source/licence review stays with its asset batch.
unity/Assets/Art/Settlements/Prototype/HexSandboxModels/
diff --git a/scripts/oss/tests/test_policies.py b/scripts/oss/tests/test_policies.py
index d0aa98b8d..dd064537d 100644
--- a/scripts/oss/tests/test_policies.py
+++ b/scripts/oss/tests/test_policies.py
@@ -225,6 +225,20 @@ def test_gitignore_covers_editor_licence_and_local_files():
assert rule in lines, rule
+
+def test_gitignore_covers_build_scratch_but_not_project_settings():
+ # #2181 committed scripts/unity_compile/obj/ (dotnet restore/build output beside the .csproj files) and unity/.vsconfig
+ # (written by com.unity.ide.visualstudio on open). PackageManagerSettings.asset is tracked project config (the
+ # OpenUPM scoped registry Unity-MCP needs) and must stay visible to git.
+ import subprocess
+ def ignored(path):
+ return subprocess.run(["git", "-C", str(ROOT), "check-ignore", "-q", "--no-index", path]).returncode == 0
+ for path in ("scripts/unity_compile/obj/project.assets.json", "scripts/unity_compile/obj/Debug/Game.assets.cache",
+ "scripts/unity_compile/bin/Debug/Game.dll", "unity/.vsconfig"):
+ assert ignored(path), path
+ assert not ignored("unity/ProjectSettings/PackageManagerSettings.asset")
+
+
# Batch 2 fix round 1.
def test_trademark_says_the_logo_check_is_pending_and_d_h_covers_every_promo_image():
tm = " ".join(read("TRADEMARK.md").split())