erplibre/script/version
Mathieu Benoit a6ecc8aa3c [FIX] update_env_version: --with_extra clone CybroOdoo + config.conf
The extra modules (CybroOdoo) were still not applied on an already-installed
environment even after apply_extra_modules() was added. Two root causes:

1. When update_env_version.py runs as a script, sys.path[0] is
   script/version/, so « from script.version.erplibre_state import ... »
   raised ImportError and _STATE_AVAILABLE fell back to False. The whole
   state mechanism was silently disabled: set_version_installed() never
   wrote .erplibre-state.json, get_version_extra() stayed False, and the
   extra manifest was never merged -> CybroOdoo never cloned. Add a sibling
   import fallback so the state module also resolves under script execution.

2. generate_config.sh rewrites config.conf from a fixed addons list that
   omits the extra modules. Add add_extra_to_config_conf(), called AFTER
   generate_config.sh (last writer wins), which appends the extra addons
   paths (derived from the "extra" group of the extra manifest) to
   addons_path. Idempotent: already-present paths are skipped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-31 01:18:14 -04:00
..
change_python_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
erplibre_state.py [ADD] installation: add optional extra modules (CybroOdoo) 2026-05-19 15:17:45 -04:00
get_version.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
update_env_version.py [FIX] update_env_version: --with_extra clone CybroOdoo + config.conf 2026-07-31 01:18:14 -04:00