the schemas git submodule cause problems for dependencies
If added in forgefriends it cannot build because:
# code.gitea.io/gitea/integrations
/tmp/cache/go-path/pkg/mod/lab.forgefriends.org/friendlyforgeformat/gof3@v0.0.0-20220903094014-9d12830f8813/format/schemas.go:15:12: pattern schemas/*.json: no matching files found
The documentation does not contain anything related to git submodules. The question was asked in the golang chatroom.
Workaround
Add to go.mod:
replace lab.forgefriends.org/friendlyforgeformat/gof3 => ../gof3-othertree
( cd ~/software && rm -rf gof3-tree ; cp -a ../gof3 gof3-tree ; rm -fr gof3-tree/.git gof3-tree/format/schemas/.git )
docker run --rm -ti -e TEST_TAGS='bindata sqlite sqlite_unlock_notify' -e GOPATH=/tmp/cache/go-path -e GOCACHE=/tmp/cache/go-build --volume=$(pwd)/..:/tmp/cache --volume=$(pwd)/../gof3-tree:/drone/gof3-tree --volume $(pwd):/drone/src --workdir /drone/src --user gitea mytestenv:latest bash -c 'make integrations.sqlite.test generate-ini-sqlite && GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.v -test.run TestF3'