# Issues with hugo module dependency version resolution

**URL:** <https://discourse.gohugo.io/t/issues-with-hugo-module-dependency-version-resolution/36232>\
**Category:** support\
**Tags:** modules\
**Created:** [December 27, 2021, 7:11am UTC](https://discourse.gohugo.io/t/issues-with-hugo-module-dependency-version-resolution/36232 "2021-12-27T07:11:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UtkarshVerma](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/utkarshverma/32/11273_2.png) [@UtkarshVerma](https://discourse.gohugo.io/u/UtkarshVerma)\
**Post date:** [December 27, 2021, 7:11am UTC](https://discourse.gohugo.io/t/issues-with-hugo-module-dependency-version-resolution/36232/1 "2021-12-27T07:11:29Z")

</div>

I’m trying to go for a modular website. This is the project structure:

```nohighlight
site (module)
  - theme (module)
    - bootstrap (module)
    - svg icon system (module)

```

Now, my [`svg-icon-system`](https://github.com/UtkarshVerma/hugo-modules/tree/main/svg-icon-system) module depends on FontAwesome version 5.15.4 as is shown in the module’s [`go.mod`](https://github.com/UtkarshVerma/hugo-modules/blob/main/svg-icon-system/go.mod).

When I do `hugo mod graph` in my theme folder, I get:

```auto
❯ hugo mod graph
github.com/UtkarshVerma/hugo-yoru github.com/UtkarshVerma/hugo-modules/bootstrap-v5@v0.0.0-20211227063022-65ec41aa3f2c
github.com/UtkarshVerma/hugo-modules/bootstrap-v5@v0.0.0-20211227063022-65ec41aa3f2c github.com/twbs/bootstrap@v5.1.3+incompatible
github.com/UtkarshVerma/hugo-modules/bootstrap-v5@v0.0.0-20211227063022-65ec41aa3f2c github.com/popperjs/popper-core@v2.10.2+incompatible+vendor
github.com/UtkarshVerma/hugo-yoru github.com/UtkarshVerma/hugo-modules/svg-icon-system@v0.0.0-20211227063022-65ec41aa3f2c
github.com/UtkarshVerma/hugo-modules/svg-icon-system@v0.0.0-20211227063022-65ec41aa3f2c github.com/FortAwesome/Font-Awesome@v0.0.0-20210804190922-7d3d774145ac

```

which is as expected.

However, when I do `hugo mod graph` in my website folder, I get:

```auto
go get: added github.com/UtkarshVerma/hugo-yoru v0.0.0-00010101000000-000000000000
hugo: downloading modules …
go get: added github.com/twbs/bootstrap v5.1.3+incompatible
go get: added github.com/FortAwesome/Font-Awesome v4.7.0+incompatible
hugo: collected modules in 6262 ms

```

I find this really weird. I don’t know how it is resolving the v4.7.0 even when the `svg-icon-system` module clearly depends on another version.

My website and theme are quite bare-bones, with the following configs:

```auto
#site/config.yaml
module:
  imports:
    - path: github.com/UtkarshVerma/hugo-yoru

```

```auto
// site/go.mod
module bitbanged.com

go 1.17

replace github.com/UtkarshVerma/hugo-yoru => ../hugo-yoru

require (
	github.com/FortAwesome/Font-Awesome v4.7.0+incompatible // indirect
	github.com/UtkarshVerma/hugo-yoru v0.0.0-00010101000000-000000000000 // indirect
	github.com/twbs/bootstrap v5.1.3+incompatible // indirect
)

```

```auto
#theme/config.yaml
module:
  imports:
    - path: github.com/UtkarshVerma/hugo-modules/bootstrap-v5
    - path: github.com/UtkarshVerma/hugo-modules/svg-icon-system

```
