gpt4 book ai didi

amazon-web-services - AWS 代码构建 : YAML_FILE_ERROR Message: Expected Variables to be of map type:

转载 作者:行者123 更新时间:2023-12-05 04:42:07 26 4
gpt4 key购买 nike

我在 buildspec.yaml 文件中收到 YAML 错误。错误是:

[Container] 2021/11/09 06:18:34 Waiting for agent ping
[Container] 2021/11/09 06:18:35 Waiting for DOWNLOAD_SOURCE
[Container] 2021/11/09 06:18:40 Phase is DOWNLOAD_SOURCE
[Container] 2021/11/09 06:18:40 CODEBUILD_SRC_DIR=/codebuild/output/src909937249/src/git-codecommit.us-east-2.amazonaws.com/v1/repos/nftytest
[Container] 2021/11/09 06:18:40 YAML location is /codebuild/readonly/buildspec.yml
[Container] 2021/11/09 06:18:42 Phase complete: DOWNLOAD_SOURCE State: FAILED
[Container] 2021/11/09 06:18:42 Phase context status code: YAML_FILE_ERROR Message: Expected Variables to be of map type: found string instead at line 5, check indentation or content around the line num

我的构建规范如下所示

version: 0.2

env:
variables:
CRYPTOGRAPHY_DONT_BUILD_RUST:"1"
phases:
install:
commands:
- yum install python3 -y
- python3 -m venv venv
- source venv/bin/activate
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- pip3 install -r requirements/local.txt

它在 CRYPTOGRAPHY_DONT_BUILD_RUST:"1" 行给出。

最佳答案

应该有一个空格:

env:
variables:
CRYPTOGRAPHY_DONT_BUILD_RUST: "1"

关于amazon-web-services - AWS 代码构建 : YAML_FILE_ERROR Message: Expected Variables to be of map type:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69893634/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com