yaml - 部署到 circle-ci 时无法解析 config.yml 文件中的 YAML
问题描述
情况
- 我在我的个人项目中发出配置处理错误
成功
- 我添加了 AWS s3 和 CloudFront,并且在 circle-ci 上部署成功
失败
- 我添加了导致错误的 linting,但我没有使用 tab t 进行缩进
这是我的回购
错误
!/bin/sh -eo pipefail
Unable to parse YAML
while scanning for the next token
found character '\\t(TAB)' that cannot start any token. (Do not use \\t(TAB) for indentation)
in 'string', line 57, column 34:
- *show-current-branch-name\t
^
-------
Warning: This configuration was auto-generated to show you the message above.
Don't rerun this job. Rerunning will have no effect.
false
解决方案
您在第 57 行的末尾有一个 TAB 字符。删除它,它应该会通过。
推荐阅读
- android - 为什么openGL会阻止UI?
- c++ - 相互依赖的静态库
- spring-integration - setOnFailureExpression 不适用于#root 和#exception
- javascript - 按顺序向上滑动元素
- excel - 将更改源中的单元格值复制到另一个工作表中
- node.js - EmberJS 2.15.1 找不到模块`fullcalendar`
- linux-device-driver - 如何将我的设备与 IOMMU 框架连接?
- reactjs - 在 React + Typescript 中转换样式组件
- artifactory - 为符号包配置 Artifactory (*.snupkg)
- javascript - 如何在 React Native 中查看 javascript 包代码?