Description
When repo.json is decoded, the plugin installer uses JSON5, but the plugin manager uses JSON for configuration.
References:
|
dec := json.NewDecoder(bytes.NewReader(data)) |
|
decoder := json5.NewDecoder(resp.Body) |
If you use a comment in repo.json, the plugin won't be loaded but can be installed.
I assume JSON5 should be used in both(?).
Environment
- Version: 2.0.15
- OS: It does not matter.
- Terminal: It does not matter.
Description
When
repo.jsonis decoded, the plugin installer uses JSON5, but the plugin manager uses JSON for configuration.References:
micro/internal/config/plugin_manager.go
Line 38 in 5dabe17
micro/internal/config/plugin_installer.go
Line 158 in 5dabe17
If you use a comment in
repo.json, the plugin won't be loaded but can be installed.I assume JSON5 should be used in both(?).
Environment