Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 通过勺子在AppVeyor CI上安装某些工具时生成错误_Ruby_Windows_Continuous Integration_Appveyor_Scoop Installer - Fatal编程技术网

Ruby 通过勺子在AppVeyor CI上安装某些工具时生成错误

Ruby 通过勺子在AppVeyor CI上安装某些工具时生成错误,ruby,windows,continuous-integration,appveyor,scoop-installer,Ruby,Windows,Continuous Integration,Appveyor,Scoop Installer,我创建了以下内容: 其目的是安装Ruby,但具有: 同样的问题也发生在,例如 请注意,我可以轻松安装其他工具,例如: scoop install curl grep sed less touch python perl 没有任何问题(见此),但它在Ruby和ShellCheck上失败 我遗漏了什么?您描述的错误(构建阶段设置为“MSBuild”模式(默认)…)与Scoop或在安装阶段发生的任何事情无关。默认情况下,AppVeyor尝试检测Visual Studio解决方案或项目。要禁用该行

我创建了以下内容:

其目的是安装Ruby,但具有:


同样的问题也发生在,例如


请注意,我可以轻松安装其他工具,例如:

scoop install curl grep sed less touch python perl
没有任何问题(见此),但它在Ruby和ShellCheck上失败

我遗漏了什么?

您描述的错误(
构建阶段设置为“MSBuild”模式(默认)…
)与Scoop或在
安装阶段发生的任何事情无关。默认情况下,AppVeyor尝试检测Visual Studio解决方案或项目。要禁用该行为,您可以设置
build:off
或将
test\u脚本:
重命名为
build\u脚本:


这是正在工作的
appveyor.yml

init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V

已安装Ruby 2.5.1-2 x64:。你真的也需要安装吗?@ilyaf不知道。然而,在其他工具中也出现了这个错误(例如),所以我更感兴趣的是如何解决它自己的错误,这样它就可以与所有工具一起工作。
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install shellcheck
test_script:
- shellcheck -V
scoop install curl grep sed less touch python perl
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- ps: scoop install ruby shellcheck
build: off
test_script:
- shellcheck -V