drk49438 2018-09-25 07:00
浏览 628

收到错误后,我使用了“ git config-global-unset https.proxy”来摆脱该错误,但它不起作用

I have installed go1.11/ windows amd64. I am testing the installation of GO

I installed golang with recommended path for all env variables but getting the errors while issuing 'go get github.com/golang/example/hello' on the command prompt

> `go get github.com/golang/example/hello
> # cd D:\gocode\src\github.com\golang\example; git pull --ff-only There is no tracking information for the current branch. Please specify
> which branch you want to merge with. See git-pull(1) for details.
> 
>     git pull <remote> <branch>
> 
> If you wish to set tracking information for this branch you can do so
> with:
> 
>     git branch --set-upstream-to=<remote>/<branch> master
> 
> package github.com/golang/example/hello: exit status 1`

Below is my output of 'go env':

go env set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\parapand\AppData\Local\go-build set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=D:\gocode set GOPROXY= set GORACE= set GOROOT=C:\Go set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\parapand\AppData\Local\Temp\go-build101474458=/tmp/go-build -gno-record-gcc-switches

>go build can't load package: package .: no Go files in C:\Users\parapand

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
    • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
    • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
    • ¥30 3天&7天&&15天&销量如何统计同一行
    • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
    • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
    • ¥15 vs2019中数据导出问题
    • ¥20 云服务Linux系统TCP-MSS值修改?
    • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)
    • ¥20 怎么在stm32门禁成品上增加查询记录功能