Hugo module cache issue?

Hi there,

Is anyone else facing issues related to the Hugo module cache?

I am only using 2 hugo modules.

# config.yaml file
module:
  imports:
    - path: github.com/refactoringui/heroicons
      mounts:
        - source: src
          target: assets/svg/heroicons
    - path: github.com/ghosh/micromodal
      mounts:
        - source: lib/src
          target: assets/micromodal

The errors I receive when using hugo or hugo server commands are

piti@Pitis-iMac testproject % hugo server
go: github.com/ghosh/Micromodal@v0.0.0-20220128171254-2a316150d12b: invalid version: git ls-remote -q origin in /var/folders/ck/gvmj2pdn21zbtz8zcncfm5980000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/1313db6a2b6978f5a17ad00e1bc01ca7188358be3009ac44fdf459aadd689b77: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
hugo: collected modules in 880 ms
Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go: github.com/ghosh/Micromodal@v0.0.0-20220128171254-2a316150d12b: invalid version: git ls-remote -q origin in /var/folders/ck/gvmj2pdn21zbtz8zcncfm5980000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/1313db6a2b6978f5a17ad00e1bc01ca7188358be3009ac44fdf459aadd689b77: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
 *errors.errorString
piti@Pitis-iMac testproject % hugo mod clean
go: github.com/ghosh/Micromodal@v0.0.0-20220128171254-2a316150d12b: invalid version: git ls-remote -q origin in /var/folders/ck/gvmj2pdn21zbtz8zcncfm5980000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/1313db6a2b6978f5a17ad00e1bc01ca7188358be3009ac44fdf459aadd689b77: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
hugo: collected modules in 857 ms
Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go: github.com/ghosh/Micromodal@v0.0.0-20220128171254-2a316150d12b: invalid version: git ls-remote -q origin in /var/folders/ck/gvmj2pdn21zbtz8zcncfm5980000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/1313db6a2b6978f5a17ad00e1bc01ca7188358be3009ac44fdf459aadd689b77: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
 *errors.errorString

I was able to fix this before by deleting the go.mod and go.sum files and starting over. The strange thing is that it worked absolutely great the day before.

I’m not sure what I need to do here, so any recommendations on how to solve this problem would be highly appreciated.

Thank you for taking the time to read & response.

seems like the issue is related to micromodal as removing it everything works