Set chdir for ConfigSetting#cmd!

What does this Merge Request do?

This MR fixes a bug that was introduced in !1443 (merged) where running any gdk <subcommand> outside of GDK.root (e.g. GDK.root/gitlab) caused:

$ gdk update
() Error: Your gdk.yml is invalid.

No such file or directory - support/pg_bindir

This bug was pre-existing to !1443 (merged) but was surfaced now that YAML parsing/validation fails in the event of an error.

Merge Request checklist

  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.

cc @DylanGriffith, @ekigbo

Edited by Ash McKenzie

Merge request reports

Loading