插件加载阶段出现意外的EPLUGINCONF

时间:2019-03-22 03:42:14

标签: semantic-release

我正在实现a semantic-release plugin,但是当我将其应用于构建时,会触发以下错误。

我可以理解,我的插件(gradle-semantic-release-plugin)生成的配置很糟糕,但是我找不到发生原因如何修复 。希望我能从社区获得帮助。

✖  EPLUGINCONF The `prepare` plugin configuration is invalid.
The prepare plugin configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/plugins.md#prepare-plugin)  must be
a single or an array of plugins definition. A plugin definition is an npm module name, optionnaly wrapped in an array with an object.

Your configuration for the prepare plugin is [ [ { [AsyncFunction: prepare] pluginName: '@semantic-release/changelog' }, {} ], [ { updateVersion:
[AsyncFunction: updateVersion], default: [AsyncFunction: prepare], pluginName: 'gradle-semantic-release-plugin' }, {} ], [ { [AsyncFunction: prepa
re] pluginName: '@semantic-release/git' }, { assets: [Array] } ] ].

{ AggregateError:
    SemanticReleaseError: The `prepare` plugin configuration is invalid.
        at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-error.js:6:10)
        at Object.entries.reduce (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:61:23)
        at Array.reduce (<anonymous>)
        at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:47:59)
        at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
        at <anonymous>
    at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
    at <anonymous>

this package.json中列出了我的发布配置,我的插件没有配置。

谢谢!

1 个答案:

答案 0 :(得分:0)

我发现这是因为我将多个函数导出为RSpec.describe 'smth' do array.each do |i| it { should_smth } end end This PR解决了我的问题。