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
build constraints exclude all Go files in
$ 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
cannot load github.com/drone/drone/store/template: no Go source files
I already have followed that guide and successfully set up Drone locally with a Gitea instance. However, I’m quite sure that the installation guide in the docs that you link to is for the Enterprise version. Whereas I want to install the Open Source Edition.
There looks to be something up with master, i will look into that. To get you running you can build of the latest released version git reset v2.0.1 --hard then retry the build go install -tags "oss nolimit" github.com/drone/drone/cmd/drone-server