Hey there! Sorry if this is wrong place to post this.
I am trying to setup GitLab on my local system(macOS M1). I have installed prerequisites and after running gdk install gitlab_repo=git@gitlab.com:makbond0902/gitlab.git
, I am getting following error::
build flag -mod=mod only valid when using modules
make[1]: [bin/gitlab-shell] Error 1
make: [gitlab-shell-setup] Error 2
❌️ ERROR: Failed to install.
Under “Installing gitlab-org/gitlab-shell Ruby gems”.
As suggested I ran ‘gdk doctor’ and got this::
.........❌️ ERROR: 'bundle config get PATH' failed.
.........
⚠️ WARNING: Your GDK may need attention.
Bundler
================================================================================
/Users/mak/projects/forks/gitlab-development-kit/gitaly/ruby appears to have BUNDLE_PATH configured
which can cause issues. For more detail,
visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/1315
Database Migrations
================================================================================
There are pending database migrations. To update your database, run:
(gdk start db && cd /Users/mak/projects/forks/gitlab-development-kit/gitlab && /Users/mak/projects/forks/gitlab-development-kit/support/bundle-exec rails db:migrate)
PostgreSQL
================================================================================
`psql` is version 12.13, but your PostgreSQL data dir is using version unknown.
Check that your PATH is pointing to the right PostgreSQL version, or see the PostgreSQL upgrade guide:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/postgresql.md#upgrade-postgresql
Praefect
================================================================================
No such file or directory - /Users/mak/projects/forks/gitlab-development-kit/gitaly/_build/bin/praefect
/Users/mak/.asdf/installs/ruby/3.0.5/lib/ruby/3.0.0/open3.rb:221:in `spawn'
/Users/mak/.asdf/installs/ruby/3.0.5/lib/ruby/3.0.0/open3.rb:221:in `popen_run'
/Users/mak/.asdf/installs/ruby/3.0.5/lib/ruby/3.0.0/open3.rb:160:in `popen2'
/Users/mak/projects/forks/gitlab-development-kit/lib/shellout.rb:84:in `readlines'
/Users/mak/projects/forks/gitlab-development-kit/lib/gdk/diagnostic/praefect.rb:36:in `migrations_needing_attention'
/Users/mak/projects/forks/gitlab-development-kit/lib/gdk/diagnostic/praefect.rb:45:in `migrations_ok?'
/Users/mak/projects/forks/gitlab-development-kit/lib/gdk/diagnostic/praefect.rb:9:in `success?'
/Users/mak/projects/forks/gitlab-development-kit/lib/gdk/command/doctor.rb:55:in `perform_diagnosis_for'
/Users/mak/projects/forks/gitlab-development-kit/lib/gdk/command/doctor.rb:48:in `block (2 levels) in jobs'
It would be great if somebody pointed out what should I do here