Skip to content

Commit b769912

Browse files
cliedemanchristophwitzko
authored andcommitted
fix: Add warning when update files plugins are present with no files to update
1 parent f8d478c commit b769912

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/semantic-release/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ func cliHandler(cmd *cobra.Command, args []string) {
262262
exitIfError(ioutil.WriteFile(".version", []byte(newVer), 0644))
263263
}
264264

265+
if len(conf.UpdateFiles) == 0 && len(conf.FilesUpdaterPlugins) > 0 {
266+
logger.Println("warning: file update plugins found but no files marked for update. You may be missing the update flag, e.g. --update package.json")
267+
}
268+
265269
if len(conf.UpdateFiles) > 0 {
266270
logger.Println("updating files...")
267271
updater, err := pluginManager.GetChainedUpdater()

0 commit comments

Comments
 (0)