Antora lacks git SHA256 support #23

Open
opened 2026-03-19 16:22:05 +00:00 by venefilyn · 1 comment
Member

Trying to build the docs currently fails with cloning error for two repos in particular. Both of these are SHA256 and none of the other repos use SHA256 and instead use the default SHA1.

Opened issue upstream https://gitlab.com/antora/antora-ui-default/-/work_items/238

Workaround for now is to recreate the two repositories with SHA1.

@jflory7, both of those repos are created by you AFAICT. Can you recreate the repos using SHA1 for now? Until Antora supports it we can't utilize SHA256 repos.

❯ npx antora generate --stacktrace site.yml
[fetch] https://forge.fedoraproject.org/docs/site-frontpage.git  [#####################################################]
[fetch] ...://forge.fedoraproject.org/docs/release-docs-home.git [#####################################################]
[fetch] https://forge.fedoraproject.org/docs/install-guide.git   [#####################################################]
[fetch] https://forge.fedoraproject.org/docs/sysadmin-guide.git  [#####################################################]
[fetch] ...ora/docs/fedora-linux-documentation/release-notes.git [#####################################################]
[fetch] https://forge.fedoraproject.org/docs/quick-docs.git      [#####################################################]
[clone] https://forge.fedoraproject.org/commops/docs.git         [?????????????????????????????????????????????????????]
[16:51:14.327] FATAL (antora): Could not find 6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147 (url: https://forge.fedoraproject.org/commops/docs.git)
    Cause: Error
        at transformGitCloneError (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1002:22)
        at /var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:207:17
        at async loadRepository (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:197:7)
        at async gracefulPromiseAllWithLimit (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1080:7)
        at async Promise.all (index 0)
        at async generateSite (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/site-generator/lib/generate-site.js:23:5)
        at async Command.parseAsync (/var/home/spytec/projects/docs-fp-o/node_modules/commander/lib/command.js:936:5)
    Caused by: NotFoundError: Could not find 6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147.
        at GitRefManager.resolveAgainstMap (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:2078:11)
        at GitRefManager.resolveAgainstMap (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:2069:30)
        at _fetch (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:7835:42)
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
        at async _clone (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:8178:42)
        at async Object.clone (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:8301:12)
        at async loadRepository (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:197:7)
        at async gracefulPromiseAllWithLimit (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1080:7)
        at async Promise.all (index 0)
        at async generateSite (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/site-generator/lib/generate-site.js:23:5) {
      caller: 'git.clone',
      code: 'NotFoundError',
      data: {
        what: '6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147'
      }
    }
Trying to build the docs currently fails with cloning error for two repos in particular. Both of these are SHA256 and none of the other repos use SHA256 and instead use the default SHA1. - https://forge.fedoraproject.org/commops/docs.git - https://forge.fedoraproject.org/mentored-projects/docs.git Opened issue upstream https://gitlab.com/antora/antora-ui-default/-/work_items/238 Workaround for now is to recreate the two repositories with SHA1. @jflory7, both of those repos are created by you AFAICT. Can you recreate the repos using SHA1 for now? Until Antora supports it we can't utilize SHA256 repos. ``` ❯ npx antora generate --stacktrace site.yml [fetch] https://forge.fedoraproject.org/docs/site-frontpage.git [#####################################################] [fetch] ...://forge.fedoraproject.org/docs/release-docs-home.git [#####################################################] [fetch] https://forge.fedoraproject.org/docs/install-guide.git [#####################################################] [fetch] https://forge.fedoraproject.org/docs/sysadmin-guide.git [#####################################################] [fetch] ...ora/docs/fedora-linux-documentation/release-notes.git [#####################################################] [fetch] https://forge.fedoraproject.org/docs/quick-docs.git [#####################################################] [clone] https://forge.fedoraproject.org/commops/docs.git [?????????????????????????????????????????????????????] [16:51:14.327] FATAL (antora): Could not find 6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147 (url: https://forge.fedoraproject.org/commops/docs.git) Cause: Error at transformGitCloneError (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1002:22) at /var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:207:17 at async loadRepository (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:197:7) at async gracefulPromiseAllWithLimit (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1080:7) at async Promise.all (index 0) at async generateSite (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/site-generator/lib/generate-site.js:23:5) at async Command.parseAsync (/var/home/spytec/projects/docs-fp-o/node_modules/commander/lib/command.js:936:5) Caused by: NotFoundError: Could not find 6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147. at GitRefManager.resolveAgainstMap (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:2078:11) at GitRefManager.resolveAgainstMap (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:2069:30) at _fetch (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:7835:42) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async _clone (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:8178:42) at async Object.clone (/var/home/spytec/projects/docs-fp-o/node_modules/isomorphic-git/index.cjs:8301:12) at async loadRepository (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:197:7) at async gracefulPromiseAllWithLimit (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/content-aggregator/lib/aggregate-content.js:1080:7) at async Promise.all (index 0) at async generateSite (/var/home/spytec/projects/docs-fp-o/node_modules/@antora/site-generator/lib/generate-site.js:23:5) { caller: 'git.clone', code: 'NotFoundError', data: { what: '6cf85deb74b57fbf903f323ee7be27adbe7f2d214c436c3a07517766033d5147' } } ```
Author
Member

I forgot to note it down. Workaround is to always prefetch the sources. We need to update our README and scripts to make the workflow better with running locally (as it works on CI)

I forgot to note it down. Workaround is to always prefetch the sources. We need to update our README and scripts to make the workflow better with running locally (as it works on CI)
Sign in to join this conversation.
No description provided.