Update `gdk cleanup` command to exclude sub-project dependencies
Overview
This was initially discussed in the Slack thread (internal).
The gdk cleanup
command currently removes dependencies such as Golang 1.22.2 that are listed in sub-projects' .tool-versions
files but not in the .tool-versions
file in the GDK directory. This causes problems because these dependencies are still required by the sub-projects. We need to update the command to only remove unnecessary dependencies listed in the .tool-versions
file in the GDK directory and not impact the dependencies in sub-projects.
$ gdk cleanup
⚠️ WARNING: About to perform the following actions:
- Truncate gitlab/log/* files
- Uninstall any asdf software that is not defined in .tool-versions
Are you sure? [y/N]:
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Proposal (optional)
Environment (optional)
- Operating system name:
<!-- output of `uname -a` command -->
- Architecture:
<!-- output of `arch` command -->
- The contents of your
gdk.yml
(if any) - Ruby version:
<!-- output of `ruby --version` command -->
- GDK version:
<!-- output of `git rev-parse --short HEAD` command -->
Edited by Nao Hashizume