Description

I do it by command “go get -u -v github.com/gin-gonic/gin”,The following error message appears

【 package github.com/gin-gonic/gin imports github.com/gin-contrib/sse imports net/http imports crypto/tls imports golang.org/x/crypto/chacha20poly1305 imports golang.org/x/sys/cpu: C source files not allowed when not using cgo or SWIG: cpu_gccgo_x86.c 】

Environment

  • go version: 1.5.6
  • gin version (or commit ref): lasted
  • operating system: win 10

Comment From: robocanic

I have the same problem as you described. And this issue also occcured in other conditions, like when I start an application, it also happened. I aslo upgrade or downgrade the version of GO, but it didn't work. So wired.

Comment From: thinkerou

go version: 1.5.6? now go version release 1.20!