diff options
author | Jesse Hallam <jesse.hallam@gmail.com> | 2018-07-18 18:32:33 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-07-18 15:32:33 -0700 |
commit | 309a3dda605dbda6b9f6f769ea386764671ea5d3 (patch) | |
tree | 3b891fef93781aa8d4dcfe41d093715cb1be8913 /plugin/environment.go | |
parent | cbd3fa4b3ba0e24c6008ac1e501d7a7fe25c1c99 (diff) | |
download | chat-309a3dda605dbda6b9f6f769ea386764671ea5d3.tar.gz chat-309a3dda605dbda6b9f6f769ea386764671ea5d3.tar.bz2 chat-309a3dda605dbda6b9f6f769ea386764671ea5d3.zip |
Support `server`, deprecate `backend` in plugin manifest (#9127)
* Support `server`, deprecate `backend` in plugin manifest
This lets us converge on the use of the term `server` everywhere instead
of sometimes `backend` and sometimes `server`. We're still using
`webapp` and will eventually support `mobile` as well.
The plan is actually to rip out these deprecations as part of releasing
5.2, but I want to coordinate the extra additional breakage at the same
time, so for now this is a backwards compatible change.
* fix failing tests
Diffstat (limited to 'plugin/environment.go')
-rw-r--r-- | plugin/environment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/environment.go b/plugin/environment.go index 450078893..7adb0938d 100644 --- a/plugin/environment.go +++ b/plugin/environment.go @@ -192,7 +192,7 @@ func (env *Environment) Activate(id string) (reterr error) { } } - if pluginInfo.Manifest.Backend != nil { + if pluginInfo.Manifest.HasServer() { supervisor, err := newSupervisor(pluginInfo, env.logger, env.newAPIImpl(pluginInfo.Manifest)) if err != nil { return errors.Wrapf(err, "unable to start plugin: %v", id) |