feat(package_manager): fix env var reference in installer

Fix incorrect variable reference in package manager installer. The code was using `C&component.env_vars` instead of `&component.env_vars` when iterating through environment variables. This would cause compilation errors. The fix properly references the component's env_vars field when evaluating environment variable references.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-12 12:51:21 -03:00
parent 4cf71b2c6e
commit f4816466b7

View file

@ -693,7 +693,7 @@ impl PackageManager {
// Create new env vars map with evaluated $VAR references
let mut evaluated_envs = HashMap::new();
for (k, v) in C&component.env_vars {
for (k, v) in &component.env_vars {
if v.starts_with('$') {
let var_name = &v[1..];
evaluated_envs.insert(k.clone(), std::env::var(var_name).unwrap_or_default());