Drone-cli issues after v1.5.0 (golang warnings)

After upgrading drone-cli on Mac via brew from v1.5.0 , I’ve noticed strange error messages. After some investigation found out it’s not mac specific and applies to linux version as well - it’s now, after v1.6.0 is always giving golang ‘proto’ error.

$ curl -sL https://github.com/harness/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx && ./drone -v
2022/10/25 13:24:12 proto: duplicate proto type registered: PluginSpec
2022/10/25 13:24:12 proto: duplicate proto type registered: PluginPrivilege
drone version 1.6.1

Is it something I should deal with locally, or is a bug (I am not a golang expert)?

1 Like

I have been able to recreate and think I may know why it is happening - I will look into it further.

@vldb are you able to make use of the cli? is the issue just these messages showing?

The cli itself is still working as expected and as before for my tasks (can’t tell for the whole functionality), just these warnings interfere with automation and result parsing

yep fair enough - I’ll look into it

My organization is seeing the same issue. The Drone CLI isn’t failing at all, but the spammy warnings are particularly annoying for us, because we’re using a custom plugin built on the Drone CLI to allow one Drone build to trigger another Drone build, and poll for its completion. In order for us to get the URL for the triggered build, we now have to know where in the console logs to look for it and click on the “Show all logs” button.

We have now resorted to hiding stderr from the Drone CLI :disappointed: