# Hugo Modules downloaded zip file too large

**URL:** <https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537>\
**Category:** support\
**Created:** [August 12, 2020, 5:57pm UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537 "2020-08-12T17:57:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Bayoff](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zachary_bayoff/32/8248_2.png) [@Zachary\_Bayoff](https://discourse.gohugo.io/u/Zachary_Bayoff)\
**Post date:** [August 12, 2020, 5:57pm UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537/1 "2020-08-12T17:57:19Z")

</div>

Hello,

I am in the process of setting up hugo modules for our site. We’re trying to mount a set of images from a large private repo (which we have access to). The repo is about 1.2GB. We have this in our config.yaml file:

```auto
module:
  imports:
    - path: github.com/repo-name
      mounts:
      - source: icons
        target: assets/icons

```

when running `hugo mod get -u`  
we get the logs

```auto
go: finding github.com/repo-name latest
go: downloading github.com/repo-name v0.0.0-20200812143334-89415eb561cf
go get github.com/repo-name: downloaded zip file too large

```

Is there a limit to the repo size from which we can mount? We don’t need access to the whole repo, just the subfolder with the icons.

Any help would be appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![moe\_narrow](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@moe\_narrow](https://discourse.gohugo.io/u/moe_narrow)\
**Post date:** [August 13, 2020, 12:57am UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537/2 "2020-08-13T00:57:17Z")

</div>

This is an error with `go get`, I think.

I suggest try specifying the branch with the path

```auto
github.com/repo-name@master

```

just a guess

---

<div class="post-metadata">

**Author:** ![Zachary\_Bayoff](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zachary_bayoff/32/8248_2.png) [@Zachary\_Bayoff](https://discourse.gohugo.io/u/Zachary_Bayoff)\
**Post date:** [August 13, 2020, 2:26pm UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537/3 "2020-08-13T14:26:37Z")

</div>

@moe_narrow Thanks for the suggestion, but did not solve the issue 😕

---

<div class="post-metadata">

**Author:** ![idarek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/idarek/32/26229_2.png) [@idarek](https://discourse.gohugo.io/u/idarek)\
**Post date:** [November 5, 2021, 7:23am UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537/4 "2021-11-05T07:23:14Z")

</div>

Its 1GB as I am aware hence modules repo need to be split

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [November 5, 2021, 8:00am UTC](https://discourse.gohugo.io/t/hugo-modules-downloaded-zip-file-too-large/27537/5 "2021-11-05T08:00:06Z")

</div>

> [@Zachary\_Bayoff](#):
>
> Is there a limit to the repo size from which we can mount?

Yes, I think it’s currently at 1GB. That is, unfortunately, not a limit we control (it’s in Go), and it does not matter if you only need 1 file.
