Class: GDK::Diagnostic::MacPorts
- Defined in:
- lib/gdk/diagnostic/mac_ports.rb
Constant Summary collapse
- TITLE =
'MacPorts'- MAC_PORTS_BIN =
'/opt/local/bin/port'- POSTGRESQL_COMPILATION_PROBLEM_ISSUE =
'https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/1362'- MAC_PORTS_UNINSTALLATION_LINK =
'https://guide.macports.org/chunked/installing.macports.uninstalling.html'- MIGRATE_TO_ASDF_LINK =
'https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/migrate_to_asdf.md'
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#detail ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/gdk/diagnostic/mac_ports.rb', line 16 def detail return if success? <<~MAC_PORTS_INSTALLED_MSG MacPorts is installed (`#{MAC_PORTS_BIN}` exists). Having MacPorts installed (especially old/outdated versions) can cause major issues when it comes to compiling software. A really common issue is trying to compile PostgreSQL (see #{POSTGRESQL_COMPILATION_PROBLEM_ISSUE}), so we advise to uninstall MacPorts (#{MAC_PORTS_UNINSTALLATION_LINK}) and rely on `asdf` instead (#{MIGRATE_TO_ASDF_LINK}). MAC_PORTS_INSTALLED_MSG end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/gdk/diagnostic/mac_ports.rb', line 12 def success? !File.exist?(MAC_PORTS_BIN) end |