Closed ted-vo closed 2 years ago
Hi! I just create custom plugin files-updater-gradle So I want to use --update for my gradle.properties file.
--update
gradle.properties
Expected behavior: It should pass --update value to conf.UpdateFiles
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.
Result of my command
p/s: Sorry because English is not my primary language.
I resolved
Hi! I just create custom plugin files-updater-gradle So I want to use
--update
for mygradle.properties
file.Expected behavior: It should pass
--update
value toconf.UpdateFiles
Actual behavior:
conf.UpdateFiles
with no dataTry 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#L118So I try to debug by re-build with some log. You can see it in the picture.
Result of my command
p/s: Sorry because English is not my primary language.