adobe / adobe/aio-cli-plugin-runtime

CLI tool is not replacing '$' placeholders with environment variables

未关闭
#145 15 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement help wanted question
主要语言
JavaScript
星标
21
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
CLI tool is not replacing '$' placeholders (indented more than one level) with environment variables.

**To Reproduce**
Example manifest file:
```yml
packages:
__APP_PACKAGE__:
version: 1.0.0
license: Adobe-2006
actions:
someAction:
function: dist/someAction
runtime: nodejs:10
web-export: true
annotations:
final: true
inputs:
eventingConnection:
bootstrapServers: $BOOTSTRAP_SERVERS
saslUsername: $SASL_USERNAME
```

**Expected behavior**
I expect aio cli tool to replace $ placeholders with environment variables regardless of the indentation level.

**Additional context**
An example error:
```
Error: Error connecting to the host: $BOOTSTRAP_SERVERS failed - getaddrinfo ENOTFOUND
```

贡献指南

打开贡献指南

调研方向

使用提供的 manifest 和包含 $BOOTSTRAP_SERVERS 及 $SASL_USERNAME 的嵌套输入复现该问题。首先跟踪 CLI 的 manifest 环境变量替换路径;当无论缩进如何都能替换占位符,并且提供的连接错误不再包含字面占位符时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。