# Building with vendored modules

**URL:** <https://forum.gitea.com/t/building-with-vendored-modules/2277>\
**Category:** Install/Maintain/Configure\
**Created:** [June 28, 2020, 9:18am UTC](https://forum.gitea.com/t/building-with-vendored-modules/2277 "2020-06-28T09:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/stb/32/4896_2.png) [@stb](https://forum.gitea.com/u/stb)\
**Post date:** [June 28, 2020, 9:18am UTC](https://forum.gitea.com/t/building-with-vendored-modules/2277/1 "2020-06-28T09:18:54Z")

</div>

I’m trying to update the FreeBSD port to 1.12.1, and I’m running into this problem:

```
    CC= GOOS= GOARCH= go generate -mod=vendor -tags 'pam sqlite sqlite_unlock_notify' 
go: inconsistent vendoring in /var/ports/work/usr/home/vagrant/gitea/work/gitea-1.12.1:
	src.techknowlogick.com/xgo@v0.0.0-20200602060627-a09175ea9056: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

```

I’m pulling the release archive off GitHub. Is there an additional make step that needs to be taken to use the vendored modules, or is the vendored state inconsistent in the archive?

Thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![stb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/stb/32/4896_2.png) [@stb](https://forum.gitea.com/u/stb)\
**Post date:** [June 28, 2020, 10:37am UTC](https://forum.gitea.com/t/building-with-vendored-modules/2277/2 "2020-06-28T10:37:38Z")

</div>

I’ve opened an issue: [https://github.com/go-gitea/gitea/issues/12080](https://github.com/go-gitea/gitea/issues/12080)
