有一个serverless.yaml
文件包含如下行:
VpcId: !Ref MyVpc
Yaml文件由check-yaml
git
钩子验证,钩子由pre-commit
命令调用。因此pre-commit run --all-files
运行失败,出现错误:
could not determine a constructor for the tag '!Ref'
in "serverless.yml", line 172, column 29
有没有办法配置check-yaml
跳过这个错误
Tags:
应该会成功的。它只是检查语法,而不是尝试加载YAML
相关问题 更多 >
编程相关推荐