Error compiling v15.2.0: packed_binaries.go:14:58: pattern _build/bin/gitaly-git2go-v15: cannot embed file _build/bin/gitaly-git2go-v15: in different module
Hi,
During the usual upgrade process from 15.1.2 to 15.2.0 I am encountering problems with compiling Gitaly from source.
Output from re-running the gitlab:gitaly:install
task the second time.
Skipping config.toml generation:
A configuration file for /var/opt/gitlab/gitaly/config.toml already exists.
rake aborted!
Gitaly failed to compile: packed_binaries.go:14:58: pattern _build/bin/gitaly-git2go-v15: cannot embed file _build/bin/gitaly-git2go-v15: in different module
gmake: *** [Makefile:605: /var/opt/gitlab/gitaly/_build/intermediate/gitaly] Error 1
/var/opt/gitlab/gitlab/lib/tasks/gitlab/gitaly.rake:38:in `block (5 levels) in <top (required)>'
/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:378:in `block in with_original_env'
/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:701:in `with_env'
/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:378:in `with_original_env'
/var/opt/gitlab/gitlab/lib/tasks/gitlab/gitaly.rake:29:in `block (4 levels) in <top (required)>'
/var/opt/gitlab/gitlab/lib/tasks/gitlab/gitaly.rake:28:in `chdir'
/var/opt/gitlab/gitlab/lib/tasks/gitlab/gitaly.rake:28:in `block (3 levels) in <top (required)>'
/var/opt/gitlab/gitlab/vendor/bundle/ruby/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry/rake.rb:26:in `execute'
/var/opt/gitlab/gitlab/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => gitlab:gitaly:install
(See full trace by running task with --trace)
Key line appears to be
packed_binaries.go:14:58: pattern _build/bin/gitaly-git2go-v15: cannot embed file _build/bin/gitaly-git2go-v15: in different module
This is blocking the upgrade to GitLab 15.2.0 on our staging, which in turns blocks the upgrade of production EE Premium instance.
I tried looking up the error, but it seems packaging related which I'm not sure how to fix as I have very little experience with Go.
Could you help me out with the issue? Thanks!
Go version: go1.18.4 linux/ppc64le
Edited by Melvin Vermeeren