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:
parent
4cf71b2c6e
commit
f4816466b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue