HUGO

Hugo fails downloading module after repo name change

This is a Hugo Module: https://github.com/theNewDynamic/hugo-module-tnd-socials

It used to be called github.com/theNewDynamic/hugo-module-socials and was referenced as such in a Hugo project through imports.

Recently I changed the name of the repo and updated my config:

module:
  imports:
    - path: github.com/theNewDynamic/hugo-module-tnd-socials

But for some reason Hugo fails to find the repo and complains:

rp:thenewdynamic.com cheribibi$ bin/hugo* mod get github.com/theNewDynamic/hugo-module-tnd-socials
go: github.com/theNewDynamic/hugo-module-tnd-socials@v0.1.0: parsing go.mod: unexpected module path "github.com/theNewDynamic/hugo-module-socials"
go: error loading module requirements
hugo: collected modules in 711 ms
go: github.com/theNewDynamic/hugo-module-tnd-socials@v0.1.0: parsing go.mod: unexpected module path "github.com/theNewDynamic/hugo-module-socials"
go: error loading module requirements
rp:thenewdynamic.com cheribibi$ bin/hugo* mod init
go: github.com/theNewDynamic/hugo-module-tnd-socials@v0.1.0: parsing go.mod: unexpected module path "github.com/theNewDynamic/hugo-module-socials"
go: error loading module requirements

I guess it’s something in the cache of my machine, but not sure what or where…
I’m running Catalina (10.15.2) with Hugo 64.1.

Everything works fine if I use the old repo url.