Does Hugo need to download full repo for targeted imports?

I’m playing around integrating fonts and wants to use one or two files from this public fork:

It is a very big repo with thousands of font files so the idea is only to import what is needed like so:

module:
  imports:
    - path: github.com/theNewDynamic/openfonts/packages/arvo_latin
      imports:
        - source: files
          target: assets/fonts/arvo_latin
        - source: index.css
          target: assets/fonts/arvo_latin/index.css

But with this configuration, Hugo seems to get stuck for dozens of minutes on

go: finding github.com/theNewDynamic/openfonts/packages/arvo_latin latest
hugo: downloading modules …

Is there any way around that?

2 Likes