I am currently running drone version 0.5.0+dev and somehow a ‘carriage return’ is added at the end of the key value when add drone secret. I am after 0.5.0, any idea how I build that version?
In terms of building drone/drone on a macbook, unfortunately I don’t get any errors building drone on my macbook. Errors from the runtime package usually indicate an error with the Go runtime, so maybe you need to upgrade to a newer version of Go?
This is the environment I use to build / develop drone:
$ uname -a
15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
hi @bradrydzewski back again to the tool ( I got distracted for the last few days). I can run make deps successfully now, but it fails on make gen with the error below. Looks like I am not setting the GOPATH correctly and it’s not specified how to in the README file. Any idea?
Many thanks in advance
Ayache
GO Version
Ayaches-MBP:drone ayache$ go version
go version go1.7.4 darwin/amd64
thanks @bradrydzewski for your prompt response. I have managed to build drone from source successfully. But the version I get when build from source is drone version 0.5.0+dev. We had issues with this version when publishing secrets ( a new line is added at the end of base64 value). I was told 0.5.0 doesn’t have this issue. I thought building from source would give me 0.5.0. Is there such version?
the version number embedded in the binary follows the pattern 0.5.0+{metadata} where the metadata is the build number. If you are building locally, the build number does not exist since that comes from the CI system, so dev is used instead. This is why all local builds will always be 0.5.0+dev
Please also note there is an official drone/drone:0.5 image available. You can use the official distribution instead of building from source. There is really no reason to build from scratch unless you plan to contribute to the project.
Thanks @bradrydzewski the latest released CLI still referencing +dev in its version: 0.5.0+dev. That something needs to be looked at. I have actually found an issue with add/list secret commands when providing drone server with following URL pattern. https://[hostname]/.*. Somehow it breaks if the URL ends with / or a path. To me the CLI should be after the drone server hostname not the actual URL. I’ve started learning GO last weekend, almost done with the introduction and I should be able to provide a fix and create PR for it. Watch this space