# Snap binary errors with hugo modules

**URL:** <https://discourse.gohugo.io/t/snap-binary-errors-with-hugo-modules/20700>\
**Category:** support\
**Created:** [September 10, 2019, 2:50pm UTC](https://discourse.gohugo.io/t/snap-binary-errors-with-hugo-modules/20700 "2019-09-10T14:50:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![holehan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/holehan/32/5121_2.png) [@holehan](https://discourse.gohugo.io/u/holehan)\
**Post date:** [September 10, 2019, 2:50pm UTC](https://discourse.gohugo.io/t/snap-binary-errors-with-hugo-modules/20700/1 "2019-09-10T14:50:41Z")

</div>

The [hugo snap binary](https://snapcraft.io/hugo) (v0.58.1 extended) doesn’t seem to like hugo modules:

```auto
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/holehan/hugo-components-matomo" not found; either add it as a Hugo Module or store it in "/..../..../themes".: module does not exist

```

Of course Go is installed. Testing the same project with the hugo binary from the github releases doesn’t throw any errors.

Anyone care to reproduce?

- Clone project that uses hugo modules, e.g. [https://github.com/bep/docuapi.git](https://github.com/bep/docuapi.git)
- Build project with snap version of hugo `/var/lib/snapd/snap/bin/hugo` (mine is on Manjaro Linux)

---

<div class="post-metadata">

**Author:** ![holehan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/holehan/32/5121_2.png) [@holehan](https://discourse.gohugo.io/u/holehan)\
**Post date:** [September 12, 2019, 12:31pm UTC](https://discourse.gohugo.io/t/snap-binary-errors-with-hugo-modules/20700/2 "2019-09-12T12:31:19Z")

</div>

Hm, it seems the snap package isn’t very popular among hugo users 🤔. I’ll stop using the snap package for now and rely on my own update script (inspired by [Script to install latest hugo release on macos and ubuntu](https://discourse.gohugo.io/t/script-to-install-latest-hugo-release-on-macos-and-ubuntu/14774)).

> <https://gist.github.com/holehan/4b1cff4ae00e19094f5ba8aafd831b8c>
