# Problem while using go module

**URL:** <https://forum.golangbridge.org/t/problem-while-using-go-module/23895>\
**Category:** Getting Help\
**Created:** [June 21, 2021, 9:23am UTC](https://forum.golangbridge.org/t/problem-while-using-go-module/23895 "2021-06-21T09:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavan.vitla](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/pavan.vitla/32/9795_2.png) [@pavan.vitla](https://forum.golangbridge.org/u/pavan.vitla)\
**Post date:** [June 21, 2021, 9:23am UTC](https://forum.golangbridge.org/t/problem-while-using-go-module/23895/1 "2021-06-21T09:23:54Z")

</div>

‘’’  
pavan@localhost:~/Pavan/gowork/src$ go run streamer.go  
streamer.go:5:5: package oci-go-sdk/v42/common is not in GOROOT (/usr/local/go/src/oci-go-sdk/v42/common)  
pavan@localhost:~/Pavan/gowork/src$ echo $GOROOT  
/usr/local/go  
pavan@localhost:~/Pavan/gowork/src$ cat …/go.mod  
module ociwork\_com/gowork

go 1.16

require [github.com/oracle/oci-go-sdk/v42](http://github.com/oracle/oci-go-sdk/v42) v42.0.0 // indirect  
pavan@localhost:~/Pavan/gowork/src$  
pavan@localhost:~/Pavan/gowork/src$ echo $GOPATH  
/home/pavan/go  
‘’’

I am unable to use the go module. The sdk is downloaded using the command  
‘’’ go get [github.com/oracle/oci-go-sdk/v42](http://github.com/oracle/oci-go-sdk/v42) ‘’’

and i see that it is downloaded inside the GOPATH.  
How do i get it working?

---

<div class="post-metadata">

**Author:** ![Stereodude](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/stereodude/32/10570_2.png) [@Stereodude](https://forum.golangbridge.org/u/Stereodude)\
**Post date:** [June 21, 2021, 8:36pm UTC](https://forum.golangbridge.org/t/problem-while-using-go-module/23895/2 "2021-06-21T20:36:06Z")

</div>

Try running “go mod tidy” in your project containing the go.mod. Works wonders sometimes.

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [September 19, 2021, 8:36pm UTC](https://forum.golangbridge.org/t/problem-while-using-go-module/23895/3 "2021-09-19T20:36:07Z")

</div>

Closed on September 19, 2021, 8:36pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
