Jekyll无需SSL连接即可构建github页面

时间:2018-08-14 17:54:17

标签: jekyll github-pages nix

我正在尝试使用Nix在Jekyll中构建github页面,但遇到一个问题,运行此Nix derivation会产生以下问题:

these derivations will be built: /nix/store/kwjjmldnp427zsm23f4j9bihxn0qihkh-nonredact.drv building path(s) ‘/nix/store/g3lqyr2gc9cc9prl0sjj9q1pfkkcw8ca-nonredact’ unpacking sources unpacking source archive /nix/store/gs7qjaqkmf1s97kkp230vj37v9jvar20-nonredact source root is nonredact patching sources configuring no configure script, doing nothing building Configuration file: /nix/store/gs7qjaqkmf1s97kkp230vj37v9jvar20-nonredact/_config.yml Source: /nix/store/gs7qjaqkmf1s97kkp230vj37v9jvar20-nonredact Destination: /nix/store/g3lqyr2gc9cc9prl0sjj9q1pfkkcw8ca-nonredact Incremental build: disabled. Enable with --incremental Generating... GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data. Liquid Exception: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) in /_layouts/default.html jekyll 3.6.2 | Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) builder for ‘/nix/store/kwjjmldnp427zsm23f4j9bihxn0qihkh-nonredact.drv’ failed with exit code 1 error: build of ‘/nix/store/kwjjmldnp427zsm23f4j9bihxn0qihkh-nonredact.drv’ failed

您可以看到它尝试执行SSL_connect来验证证书。 Nix不允许网络连接,因此为了使用nix-build建立此版本,我需要它不要尝试连接网络。

我想知道是否有人知道在构建静态github页面时如何关闭它与外界的连接?

这是为了使我可以使用此Nix派生将其与CI一起构建。

0 个答案:

没有答案