# How to use go private repository from nexus?

**URL:** <https://community.sonatype.com/t/how-to-use-go-private-repository-from-nexus/8713>\
**Category:** Sonatype Nexus Repository\
**Tags:** go\
**Created:** [May 23, 2022, 2:46pm UTC](https://community.sonatype.com/t/how-to-use-go-private-repository-from-nexus/8713 "2022-05-23T14:46:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdniels525](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jdniels525](https://community.sonatype.com/u/jdniels525)\
**Post date:** [May 23, 2022, 2:46pm UTC](https://community.sonatype.com/t/how-to-use-go-private-repository-from-nexus/8713/1 "2022-05-23T14:46:22Z")

</div>

have a private repository on nexus, which is where I created a private repository for my golang project

I’ve already run export GOPRIVATE or GOPROXY but it needs authentication, in the documents I’m looking for, there’s no way, has anyone experienced this?

```auto
go: bitbucket.org/company/common-util@v0.0.0-00010101000000-000000000000: reading https://registry.company.co.id/repository/go-group/bitbucket.org/company/common-util/@v/v0.0.0-00010101000000-000000000000.mod: 401 Unauthorized

```

---

<div class="post-metadata">

**Author:** ![aghamohammadiiman](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aghamohammadiiman](https://community.sonatype.com/u/aghamohammadiiman)\
**Post date:** [July 21, 2022, 6:10am UTC](https://community.sonatype.com/t/how-to-use-go-private-repository-from-nexus/8713/2 "2022-07-21T06:10:49Z")

</div>

hi guys maybe you did not create role for golang repo and you should create user for go repo and give all permission about go to authorize i hade the same problem for python repo and after this recommend  
it solved.
