Jekyll 拒绝构建,即使它之前构建过

Jekyll refused to build, even though it build before

我有一个项目拒绝在 Github 页面上构建。非常奇怪的是,我只在上面添加了一个 google 分析标签,但它无法构建。

这是 GitHub 没有构建的提交 https://github.com/ojiii/tale/commit/466b1133df9fc6a24d80ddafea686cc480b630ef

这是 GitHub 构建的提交 https://github.com/ojiii/tale/commit/4733ac841f24b0f0e915fa171556cf2a7bfae3b7

两者之间的唯一区别是我在 header 上添加了 Google Analytics 标签。 更奇怪的是,当尝试使用前 2 次提交在我的计算机上构建它时,此提交 https://github.com/ojiii/tale/commit/45e718fa3084e2552c409d8b0f1f1c047a253b13 它无法构建。所有失败的错误消息是 There was an error parsing `Gemfile`: There are no gemspecs at C:/Users/pikachu/Documents/Workspace/tale. Bundler cannot continue. GitHub 之前构建它(最新提交除外)甚至发布它。

要在本地调试,请将 Gemfile 替换为:

source "https://rubygems.org"

gem 'github-pages'

现在您将使用与 Github 相同的宝石。

上述错误应该会阻止您的网站构建,因此修复该错误应该会使您的网站恢复活力。