When installing gdk, gdk does not install required ruby dependencies

Overview

I followed this one liner to install gdk: https://gitlab.com/gitlab-org/gitlab-development-kit/blob/main/doc/index.md#one-line-installation

When running gdk start, the following error messages are displayed:

2024-10-05_09:59:29.36805 rails-web             : bundler: failed to load command: puma (/usr/local/bin/puma)
2024-10-05_09:59:29.36821 rails-web             : /usr/local/lib/ruby/gems/3.4.0+0/gems/bundler-2.5.11/lib/bundler/definition.rb:594:in `materialize': Could not find bootsnap-1.18.4, ffi-1.17.0, view_component-3.14.0, faraday-2.11.0, ruby-saml-1.17.0, omniauth-saml-2.2.1, gpgme-2.0.24, grape-swagger-2.1.1, grape-swagger-entity-0.5.5, graphql-2.3.16, fog-aws-3.27.0, gitlab-fog-azure-rm-2.1.0, aws-sdk-core-3.206.0, aws-sdk-s3-1.163.0, typhoeus-1.4.1, RedCloth-4.3.4, asciidoctor-2.0.23, gitlab-glfm-markdown-0.0.20, icalendar-2.10.2, puma-6.4.3, redis-5.3.0, redis-clustering-5.3.0, charlock_holmes-0.7.9, sentry-ruby-5.19.0, sentry-rails-5.19.0, sentry-sidekiq-5.19.0, gettext_i18n_rails-1.13.0, gitlab-security_report_schemas-0.1.2.min15.0.0.max15.2.1, opentelemetry-sdk-1.5.0, opentelemetry-exporter-otlp-0.28.1, opentelemetry-instrumentation-active_support-0.6.0, opentelemetry-instrumentation-active_job-0.7.7, opentelemetry-instrumentation-active_record-0.7.4, opentelemetry-instrumentation-action_view-0.7.2, opentelemetry-instrumentation-aws_sdk-0.5.4, opentelemetry-instrumentation-http-0.23.4, opentelemetry-instrumentation-concurrent_ruby-0.21.4, opentelemetry-instrumentation-ethon-0.21.8, opentelemetry-instrumentation-excon-0.22.4, opentelemetry-instrumentation-faraday-0.24.6, opentelemetry-instrumentation-grape-0.2.0, opentelemetry-instrumentation-graphql-0.28.4, opentelemetry-instrumentation-http_client-0.22.7, opentelemetry-instrumentation-net_http-0.22.7, opentelemetry-instrumentation-pg-0.28.0, opentelemetry-instrumentation-rack-0.24.6, opentelemetry-instrumentation-rails-0.31.2, opentelemetry-instrumentation-redis-0.25.7, opentelemetry-instrumentation-sidekiq-0.25.7, lefthook-1.7.15, ruby-lsp-0.17.15, ruby-lsp-rails-0.3.15, vite_ruby-3.8.2, test-prof-1.4.0, gitlab_quality-test_tooling-1.38.1, gitaly-17.4.0.pre.rc1, gitlab-kas-grpc-17.4.0.pre.rc1, grpc-1.63.0, google-protobuf-3.25.5, devfile-0.0.28.pre.alpha1, paper_trail-15.1.0, google-cloud-storage_transfer-1.2.0, google-cloud-env-2.1.1, google-cloud-core-1.7.0, aws-sigv4-1.9.1, redis-cluster-client-0.11.0, redis-store-1.11.0, public_suffix-6.0.1, launchy-2.5.2, google-cloud-storage_transfer-v1-0.8.0 in locally installed gems (Bundler::GemNotFound)
2024-10-05_09:59:29.36828 rails-web             : 	from /usr/local/lib/ruby/gems/3.4.0+0/gems/bundler-2.5.11/lib/bundler/definition.rb:193:in `specs'

This is because the install script did not automatically add the asdf lines to my ~/.bashrc:

. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"

so I had to add those myself. In addition, the script did not install the required ruby dependencies. (This is actually a well known problem: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting/asdf.md#error-command-not-found-gdk ) The missing ruby dependencies are a new problem.

Impacted categories

The following categories relate to this issue:

Steps to replicate (optional)

Try to install and launch gdk and see that it complains about missing ruby gems.

Proposal (optional)

Maybe install these gems automatically???

Environment (optional)

  • Operating system name: Linux oof-h8-1440eo 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Architecture: x86_64
  • My gdk.yml file:
---
telemetry:
  enabled: false
  username: ''
  • Ruby version: ruby 3.2.4 (2024-04-23 revision af471c0e01) [x86_64-linux]
  • GDK version: 21bd7910
Edited by personnumber3377