You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[plugins] Unify plugin config and devbox config (#1831)
## Summary
Changes plugins to use devbox config file struct. Additional fields
(e.g. `create_files`) are added to plugin struct, but not devbox config.
A few other changes:
* readme is deprecated in favor of description. Backward compatible code
added.
* `__packages` is renamed to `packages`. Structure can now match
devbox.json (which means it now allows options like allow_insecure,
etc). This field has only ever been public and used for builtins.
## How was it tested?
* builds
* CICD
Copy file name to clipboardExpand all lines: .schema/devbox-plugin.schema.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"description": "The version of the plugin.",
18
18
"type": "string"
19
19
},
20
-
"readme": {
20
+
"description": {
21
21
"description": "A short description of the plugin and how it works. This will automatically display when the user first installs the plugin, or runs `devbox info`",
Copy file name to clipboardExpand all lines: docs/app/docs/guides/creating_plugins.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Plugins are defined as Go JSON Template files, using the following schema:
63
63
{
64
64
"name": "",
65
65
"version": "",
66
-
"readme": "",
66
+
"description": "",
67
67
"env": {
68
68
"<key>": "<value>"
69
69
},
@@ -153,7 +153,7 @@ The plugin.json below sets the environment variables and config needed to run Mo
153
153
{
154
154
"name": "mongodb",
155
155
"version": "0.0.1",
156
-
"readme": "Plugin for the [`mongodb`](https://www.nixhub.io/packages/mongodb) package. This plugin configures MonogoDB to use a local config file and data directory for this project, and configures a mongodb service.",
156
+
"description": "Plugin for the [`mongodb`](https://www.nixhub.io/packages/mongodb) package. This plugin configures MonogoDB to use a local config file and data directory for this project, and configures a mongodb service.",
0 commit comments