CI e installatore: commenti degli script in inglese (#43)

La regola del progetto è «codice e commenti in inglese; interfaccia, documenti
e messaggi in italiano», e gli script di .gitea/ (script e flussi), di
installer/ e docker/entrypoint.sh avevano ancora i commenti in italiano
(decisione di Alberto del 29 novembre 2026). Cambiano solo i commenti: i
messaggi che una persona legge (echo, ::warning::, ::error::, nomi dei passi,
note della release) restano in italiano e nessun comando cambia. I programmi
awk e gli script finti delle prove erano già in inglese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-29 12:03:13 +01:00
1 parent f48384b7d4
commit 009e7d6710
18 files changed
+496 -495

No files matched your search

+13 -13
View File
@@ -1,19 +1,19 @@
#!/usr/bin/env bash
# Installa l'SDK .NET per un lavoro della CI, al posto di actions/setup-dotnet (un'azione JavaScript, che vuole Node).
# Come quella prende l'ultimo SDK del canale (predefinito 10.0, come «10.0.x»), ma lo verifica: la versione e
# l'impronta SHA-512 dell'archivio vengono dai metadati dei rilasci di Microsoft (letti con json.awk e dotnet-sdk.awk,
# awk POSIX), l'archivio da builds.dotnet.microsoft.com, e si installa solo se l'impronta coincide. Mai uno script di
# installazione scaricato al volo.
# Installs the .NET SDK for a CI job, instead of actions/setup-dotnet (a JavaScript action, which needs Node). Like
# that action it takes the newest SDK of the channel (default 10.0, like «10.0.x»), but it verifies it: the version
# and the SHA-512 hash of the archive come from Microsoft's release metadata (read with json.awk and dotnet-sdk.awk,
# POSIX awk), the archive from builds.dotnet.microsoft.com, and it is installed only if the hash matches. Never an
# install script downloaded on the fly.
#
# .gitea/scripts/dotnet.sh [canale]
#
# Dove: nella cache degli strumenti del runner (RUNNER_TOOL_CACHE, il volume act-toolcache che act_runner monta in ogni
# lavoro, anche nei contenitori), in febe-dotnet/<versione>; senza, nella cartella temporanea del lavoro. Una versione
# già installata e verificata non si riscarica; le versioni più vecchie di febe-dotnet si tolgono. Aggiunge dotnet al
# PATH dei passi seguenti (GITHUB_PATH) e scrive DOTNET_ROOT (GITHUB_ENV); fuori dalla CI stampa solo la cartella.
# Serve curl, tar, sha512sum e awk. Nel contenitore Debian delle prove le librerie di sistema dell'SDK (ICU, OpenSSL)
# le installa ambiente-prove.sh; sull'immagine del runner ICU non è garantito, e i lavori che ci girano (installatore,
# windows, release) usano DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true.
# Where: in the runner's tool cache (RUNNER_TOOL_CACHE, the act-toolcache volume that act_runner mounts in every job,
# containers included), in febe-dotnet/<versione>; without it, in the job's temporary folder. A version already
# installed and verified is not downloaded again; older versions in febe-dotnet are removed. Adds dotnet to the PATH
# of the following steps (GITHUB_PATH) and writes DOTNET_ROOT (GITHUB_ENV); outside the CI it only prints the folder.
# Needs curl, tar, sha512sum and awk. In the Debian container of the tests the SDK's system libraries (ICU, OpenSSL)
# are installed by ambiente-prove.sh; on the runner image ICU is not guaranteed, and the jobs that run there
# (installatore, windows, release) use DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true.
set -euo pipefail
canale="${1:-10.0}"
@@ -56,7 +56,7 @@ else
mv "$temporanea/sdk" "$cartella"
fi
# Le versioni precedenti, che nessun lavoro userà più (la CI fa un lavoro alla volta), e gli scarichi interrotti.
# The earlier versions, which no job will use any more (the CI runs one job at a time), and interrupted downloads.
for vecchia in "$radice"/* "$radice"/.scarico-*; do
[[ -d "$vecchia" && "$vecchia" != "$cartella" && "$vecchia" != "$temporanea" ]] || continue
rm -rf "$vecchia"