mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-02-07 20:51:10 +00:00
cleans up env generation and dropps disabled flags
This commit is contained in:
@@ -371,12 +371,7 @@ def build_state(env_path: Path, manifest_path: Path) -> ModuleCollectionState:
|
|||||||
for unknown_key in extra_env_modules:
|
for unknown_key in extra_env_modules:
|
||||||
warnings.append(f".env defines {unknown_key} but it is missing from the manifest")
|
warnings.append(f".env defines {unknown_key} but it is missing from the manifest")
|
||||||
|
|
||||||
# Warn if manifest entry lacks .env toggle (skip blocked modules)
|
# Skip warnings for missing modules - they default to disabled (0) as intended
|
||||||
for module in modules:
|
|
||||||
if not module.blocked and module.key not in env_map and module.key not in os.environ:
|
|
||||||
warnings.append(
|
|
||||||
f"Manifest includes {module.key} but .env does not define it (defaulting to 0)"
|
|
||||||
)
|
|
||||||
|
|
||||||
return ModuleCollectionState(
|
return ModuleCollectionState(
|
||||||
manifest_path=manifest_path,
|
manifest_path=manifest_path,
|
||||||
|
|||||||
6
setup.sh
6
setup.sh
@@ -1724,7 +1724,11 @@ EOF
|
|||||||
echo
|
echo
|
||||||
echo "# Modules"
|
echo "# Modules"
|
||||||
for module_key in "${MODULE_KEYS[@]}"; do
|
for module_key in "${MODULE_KEYS[@]}"; do
|
||||||
printf "%s=%s\n" "$module_key" "${!module_key:-0}"
|
local module_value="${!module_key:-0}"
|
||||||
|
# Only write enabled modules (value=1) to .env
|
||||||
|
if [ "$module_value" = "1" ]; then
|
||||||
|
printf "%s=%s\n" "$module_key" "$module_value"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
MODULES_REBUILD_SOURCE_PATH=$MODULES_REBUILD_SOURCE_PATH
|
MODULES_REBUILD_SOURCE_PATH=$MODULES_REBUILD_SOURCE_PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user