I’m trying to build the OSS version of Drone from source (which is the only way to get it as far as I know). I want to test run this version before considering upgrading to the Enterprise version.
I’m following the simple guide here: drone/BUILDING_OSS at master · drone/drone (github.com)
I have installed the newest version of Go for Windows, cloned the repository, cd’ed into the repo.
When I run the command
go install -tags "oss nolimit" github.com/drone/drone/cmd/drone-server
I would expect $GOPATH/bin to contain the compiled binary.
Instead, I get this error
package github.com/drone/drone/cmd/drone-server imports github.com/drone/drone/store/template: build constraints exclude all Go files in C:\Users\<my_username>\go\src\drone\store\template
$ go version go version go1.16.4 windows/amd64
How do I resolve this issue? Does it only work on Linux?
I have never used Go before, any help is greatly appreciated.
I tried to build from source via WSL2 (Windows Subsystem for Linux), but it gave a similar error
$ go version go version go1.13.8 linux/amd64
build github.com/drone/drone/store/template: cannot load github.com/drone/drone/store/template: no Go source files