Answer: “package XXX is not in GOROOT” when building a Go project

answer re: “package XXX is not in GOROOT” when building a Go project

May 18 ’20

34


This content originally appeared on DEV Community and was authored by Gilbert Ngeno

A pretty dumb conclusion (mostly on my part) but my issue came from having done go mod init in each of the folders. after removing go.mod and go.dep from each of the folders I did go mod init in, I could build without issue (through terminal)

Also, my packages in…


This content originally appeared on DEV Community and was authored by Gilbert Ngeno


Print Share Comment Cite Upload Translate Updates
APA

Gilbert Ngeno | Sciencx (2021-12-10T16:35:08+00:00) Answer: “package XXX is not in GOROOT” when building a Go project. Retrieved from https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/

MLA
" » Answer: “package XXX is not in GOROOT” when building a Go project." Gilbert Ngeno | Sciencx - Friday December 10, 2021, https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/
HARVARD
Gilbert Ngeno | Sciencx Friday December 10, 2021 » Answer: “package XXX is not in GOROOT” when building a Go project., viewed ,<https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/>
VANCOUVER
Gilbert Ngeno | Sciencx - » Answer: “package XXX is not in GOROOT” when building a Go project. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/
CHICAGO
" » Answer: “package XXX is not in GOROOT” when building a Go project." Gilbert Ngeno | Sciencx - Accessed . https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/
IEEE
" » Answer: “package XXX is not in GOROOT” when building a Go project." Gilbert Ngeno | Sciencx [Online]. Available: https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/. [Accessed: ]
rf:citation
» Answer: “package XXX is not in GOROOT” when building a Go project | Gilbert Ngeno | Sciencx | https://www.scien.cx/2021/12/10/answer-package-xxx-is-not-in-goroot-when-building-a-go-project/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.