sviluppo.ps1: git solo con submodule inizializzato; comando di test corretto (#109)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 12:07:23 +01:00
parent 452862e0f3
commit 5738920c9c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ $env:WEASYPRINT_DLL_DIRECTORIES = $gtk
# <radice>\vision-engine-version.txt (come nel pacchetto, build.ps1). Da sorgente lo scrive questo script. # <radice>\vision-engine-version.txt (come nel pacchetto, build.ps1). Da sorgente lo scrive questo script.
$versione = Join-Path $radice 'vision-engine-version.txt' $versione = Join-Path $radice 'vision-engine-version.txt'
$shaMotore = $null $shaMotore = $null
if (Get-Command git -ErrorAction SilentlyContinue) { # #109: solo se il submodule e' inizializzato (ha .git): altrimenti git risale al repo padre e darebbe lo sha di TMF
if ((Get-Command git -ErrorAction SilentlyContinue) -and (Test-Path (Join-Path $radice 'vendor\visionsuite\.git'))) {
$shaMotore = (git -C (Join-Path $radice 'vendor\visionsuite') rev-parse HEAD 2>$null) $shaMotore = (git -C (Join-Path $radice 'vendor\visionsuite') rev-parse HEAD 2>$null)
if ($LASTEXITCODE -ne 0) { $shaMotore = $null } if ($LASTEXITCODE -ne 0) { $shaMotore = $null }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
"""Test di scripts/archivio_sorgente.py (TieMeasureFlow#109): repo temporaneo con un submodule finto. """Test di scripts/archivio_sorgente.py (TieMeasureFlow#109): repo temporaneo con un submodule finto.
Uso: uv run --python 3.13 --extra dev pytest -q scripts/tests/test_archivio_sorgente.py Uso: uv run --no-project --python 3.13 --with pytest pytest -q scripts/tests/test_archivio_sorgente.py
""" """
import importlib.util import importlib.util
import subprocess import subprocess