adobe / adobe/aio-cli-plugin-runtime

export command produces manifest in different format and breaks the app commands

未关闭
#174 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
JavaScript
星标
21
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
With `aio rt export` the manifest we get looks like below.
```
project:
name: expproj
packages:
__APP_PACKAGE__:
```
Trying any of the app commands eg: `aio app logs` with this exported manifest fails with
```
TypeError: Cannot read property '__APP_PACKAGE__' of undefined
```
This is because app plugin expects the manifest format like below
```
project:
name: expproj
packages:
__APP_PACKAGE__:
```
Notice that `packages` is at the same level as `project`

**To Reproduce**
See above

**Expected behavior**
Should work

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

调研方向

从 `aio rt export` 命令的入口点开始,跟踪它如何组装 manifest。将其输出与 `aio app` 命令所期望的结构进行比较,然后重新执行导出并运行一个 app 命令,以确认生成的 `packages` 嵌套已得到修正。

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

评估

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

把新 issue 发到你的邮箱

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