go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
395 stars 43 forks source link

Flag '--update' and '-u' are seem not working #137

Closed ted-vo closed 2 years ago

ted-vo commented 2 years ago

Hi! I just create custom plugin files-updater-gradle So I want to use --update for my gradle.properties file.

Expected behavior: It should pass --update value to conf.UpdateFiles

Actual behavior: conf.UpdateFiles with no data


Try to debug:

I found the code condition here for the --update flag.

https://github.com/go-semantic-release/semantic-release/blob/18e8bae821ffac4f4569bc642ae3cb29ecf983f6/cmd/semantic-release/main.go#L292

I found the --update flag get value here: https://github.com/go-semantic-release/semantic-release/blob/18e8bae821ffac4f4569bc642ae3cb29ecf983f6/pkg/config/config.go#L118

So I try to debug by re-build with some log. You can see it in the picture.

image image

Result of my command

image

p/s: Sorry because English is not my primary language.

ted-vo commented 2 years ago

I resolved