From ee7971ab1cd154b035908a399168143a79a3fe37 Mon Sep 17 00:00:00 2001 From: sophia Date: Fri, 15 Oct 2021 12:21:00 -0500 Subject: [PATCH] Go/Ruby host plugin dependency --- builtin/myplugin/command/host.go | 8 ++++---- builtin/myplugin/host/alwaystrue.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/myplugin/command/host.go b/builtin/myplugin/command/host.go index e25433964..c8ccb699f 100644 --- a/builtin/myplugin/command/host.go +++ b/builtin/myplugin/command/host.go @@ -55,14 +55,14 @@ func (c *Host) Execute(trm terminal.UI, project core.Project) int32 { trm.Output("have host plugin to run against") - if r, err := h.HasCapability("dummy"); !r { - trm.Output("No dummy capability found (%s)", err) + if r, err := h.HasCapability("write_hello"); !r { + trm.Output("No write_hello capability found (%s)", err) return 1 } - trm.Output("host plugin has dummy capability to run") + trm.Output("host plugin has write_hello capability to run") - result, err := h.Capability("dummy", trm, "test value") + result, err := h.Capability("write_hello", trm) if err != nil { trm.Output("Error running capability: %s", err) return 1 diff --git a/builtin/myplugin/host/alwaystrue.go b/builtin/myplugin/host/alwaystrue.go index 207a4778a..7265fbc95 100644 --- a/builtin/myplugin/host/alwaystrue.go +++ b/builtin/myplugin/host/alwaystrue.go @@ -39,7 +39,7 @@ func (h *AlwaysTrueHost) ParentsFunc() interface{} { } func (h *AlwaysTrueHost) Parents() []string { - return []string{"force", "host", "platform", "match"} // We just need to have this be the most of all matches + return []string{"darwin", "bsd"} } // HasCapabilityFunc implements component.Host