NativeScript / NativeScript/nativescript-cli
Livesync fails when runtime version is tag string
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.3.2
- Cross-platform modules: 5.3.1
- Android Runtime: next
- iOS Runtime: next
Describe the bug
When developing the tns-core-modules we often have next version tags set to the runtimes. This works fine with initial tns run, but if I checkout another branch, the next version tag returns and run the app again, it is built, installed and fails at deploy with invalid version: next.
To Reproduce
- Set
nextversion tag to either ios or android runtime versions. - Run
tns run. This changes the runtime version to the actual next version string. - Set the runtime version tag to
nextagain - this simulates checking out another branch. - Run
tns runagain.
Result: fails withinvalid version: nextafter build.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
通过将 Android 或 iOS runtime 版本设置为 next 来运行 tns run,以重现该问题,然后恢复该标签后再次运行。跟踪 CLI 在 deploy 步骤附近对 runtime 版本的处理;当第二次运行能够成功构建、安装并 deploy,且不报告 invalid version: next 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100