• vscode安装go相关插件失败或go get安装第三方包失败


    比如安装下面第三方包

    C:Usersxxx>go get github.com/denisenkom/go-mssqldb
    go get github.com/denisenkom/go-mssqldb: module github.com/denisenkom/go-mssqldb: Get "https://proxy.golang.org/github.com/denisenkom/go-mssqldb/@v/list": dial tcp 172.217.24.17:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
    

    或vscode安装下面的失败

    Installing 8 tools at D:GoPathin
      go-outline
      go-symbols
      guru
      gorename
      dlv
      godef
      goreturns
      golint
    
    Installing golang.org/x/tools/cmd/guru FAILED
    Installing github.com/ramya-rao-a/go-outline FAILED
    Installing golang.org/x/tools/cmd/gorename FAILED
    Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED
    Installing github.com/acroca/go-symbols FAILED
    Installing golang.org/x/tools/cmd/guru FAILED
    Installing github.com/rogpeppe/godef SUCCEEDED
    Installing golang.org/x/tools/cmd/gorename FAILED
    Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED
    Installing github.com/rogpeppe/godef SUCCEEDED
    Installing github.com/sqs/goreturns FAILED
    Installing github.com/golang/lint/golint FAILED
    

    解决方法

    • 从GitHub上clone下来安装
    • 最省事的:改GOPROXY代理环境变量为https://goproxy.cn,或其他代理地址
  • 相关阅读:
    家庭记账本安卓版开发:第六天
    django-自定义过滤器
    django-标签语法
    django-url的分发, 2)起别名, 3)根目录,4)rediect跳转函数:
    django-MTV基础篇
    django-第一天
    jquery---响应式方面应用
    css-基础知识
    HTML--第一章的基本知识
    003
  • 原文地址:https://www.cnblogs.com/ls11736/p/13672309.html
Copyright © 2020-2023  润新知