Alright, I got it fixed. I ran go in legacy mode (as *@Anderson Queiroz* 
suggested) by manually setting it in the win env var: GO111MODULE=off 
(since it's a temp var which resets upon every instance); and reinstalled 
Git.

Thanks for the assist guys!

On Wednesday, September 15, 2021 at 3:56:51 AM UTC-4 Anderson Queiroz wrote:

> If I'm not mistaken `$GOPATH/pkg/mod` where go modules keeps the 
> downloaded modules, looking up `$GOPATH/pkg/mod` is to look for a module 
> downloaded in module aware mode and `$GOPATH/src` is for gopath mode.
>
> Are you working with go modules or on the legacy go path mode?
>
> On Tuesday, 14 September 2021 at 04:22:52 UTC+2 clitso...@gmail.com wrote:
>
>> Noted with thanks.
>>
>> I used "go get ." to download the package "github.com/google/gopacket", 
>> however Go is searching for it in "$GOPATH/src" while it was downloaded to 
>> "$GOPATH/pkg/mod".
>>
>> *--*
>> Clitson
>>
>>
>> On Mon, Sep 13, 2021 at 8:39 PM Ian Lance Taylor <ia...@golang.org> 
>> wrote:
>>
>>> On Mon, Sep 13, 2021 at 4:35 PM Clitson Belleau <clitso...@gmail.com> 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Has anyone had an issue with Go referencing "src" folders from the 
>>>> which was changed to "pkg" since v1.6? If so is there any way to fix this 
>>>> or any link to a similar issue? 
>>>>
>>>> I couldn't find anything in the documentation regarding this. I am 
>>>> running the latest v1.17.1 release.
>>>>
>>>> [image: fig1.png]
>>>> The folder listing for my GOPATH:
>>>> [image: fig2.png]
>>>>
>>>
>>>
>>> When presenting text, please present it as ordinary text, not as 
>>> images.  Text is much easier to read than images.  Thanks.
>>>
>>> You should not have a directory $GOROOT/src/github.com.  I don't know 
>>> why that appears to exist on your system.
>>>
>>> Ian
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/039c8652-f4fe-4a8d-8211-493f9f874ce5n%40googlegroups.com.

Reply via email to