Skip to content

fix(docs): WSL error with golang mod cache in general #226

@reecepbcups

Description

@reecepbcups

Ref 1 (Aug 2024): https://discord.com/channels/669268347736686612/1275514566104584202/1275514566104584202
Ref 2 (Oct 1, 2024): https://discord.com/channels/669268347736686612/1290674907134558229

2 users now have reported this issue where WSL likes to mess with the go instance cache for some reason. This is not related to spawn directly, but rather indirect due to the SDK/Go being used.

make protoc-gen

github.com/rollchains/rollchain/api/nameservice/module/v1: cannot find module providing package github.com/rollchains/rollchain/api/nameservice/module/v1: module github.com/rollchains/rollchain/api/nameservice/module: git ls-remote -q origin in /root/go/pkg/mod/cache/vcs/5c185abe3132c155eb28cff6824b74990ed6a2add5f97b0869c7e09afad95925: exit status 128:
        Host key verification failed.
        fatal: Could not read from remote repository.

ref 1

Image
Image

attempts go1.23.0
Image

Image

reinstalls WSL and sets up properly using spawn docs

"Thank you very much! I cleaned the go cache and after that moved to the myproject directory and then"
Image

Ref 2

Image
Image

Solution

go clean -modcache 
# or rm -rf $HOME/go/pkg/mod
make protoc-gen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions