autotune
(Brian Adams)
1
When trying to compile at the root of the cloned git directory, I get the following error:
go get github.com/drone/drone/cmd/drone-server: no matching versions for query "upgrade"
However, the following command works for building locally:
go install -tags "oss nolimit" ./cmd/drone-server
This should either be fixed or updated in BUILDING_OSS instructions.
you should clone the repository in step 1 using git clone
, not go get
$ docker run -t -i golang:1.15 /bin/sh
# git clone https://github.com/drone/drone.git
Cloning into 'drone'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 31412 (delta 5), reused 10 (delta 2), pack-reused 31389
Receiving objects: 100% (31412/31412), 27.49 MiB | 14.82 MiB/s, done.
Resolving deltas: 100% (16950/16950), done.
# cd drone
# go install -tags "oss nolimit" github.com/drone/drone/cmd/drone-server
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading github.com/drone/go-login v1.0.4-0.20190311170324-2a4df4f242a2
go: downloading github.com/drone/drone-runtime v1.1.1-0.20200623162453-61e33e2cab5d
go: downloading github.com/drone/go-scm v1.8.0
go: downloading github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9
go: downloading github.com/go-sql-driver/mysql v1.4.0
go: downloading github.com/robfig/cron v0.0.0-20180505203441-b41be1df6967
go: downloading github.com/go-chi/chi v3.3.3+incompatible
go: downloading github.com/dchest/authcookie v0.0.0-20120917135355-fbdef6e99866
go: downloading github.com/unrolled/secure v0.0.0-20181022170031-4b6b7cf51606
go: downloading github.com/lib/pq v1.1.0
go: downloading github.com/google/wire v0.2.1
go: downloading github.com/drone/drone-yaml v1.2.4-0.20200326192514-6f4d6dfb39e4
go: downloading golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413
go: downloading github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f
go: downloading github.com/docker/engine v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible
go: downloading go.starlark.net v0.0.0-20201118183435-e55f603d8c79
go: downloading golang.org/x/sys v0.0.0-20200803210538-64077c9b5642
go: downloading github.com/joho/godotenv v1.3.0
go: downloading github.com/mattn/go-sqlite3 v1.9.0
go: downloading github.com/segmentio/ksuid v1.0.2
go: downloading github.com/drone/drone-ui v0.0.0-20201110214517-ac1349fcc19c
go: downloading github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0
go: downloading github.com/drone/envsubst v1.0.3-0.20200709231038-aa43e1c1a629
go: downloading github.com/gosimple/slug v1.3.0
go: downloading github.com/bmatcuk/doublestar v1.1.1
go: downloading github.com/docker/distribution v2.7.1+incompatible
go: downloading github.com/buildkite/yaml v2.1.0+incompatible
go: downloading github.com/hashicorp/golang-lru v0.5.1
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/coreos/go-semver v0.2.0
go: downloading github.com/go-chi/cors v1.0.0
go: downloading github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/ghodss/yaml v1.0.0
go: downloading github.com/opencontainers/go-digest v1.0.0-rc1
go: downloading github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be
go: downloading github.com/kelseyhightower/envconfig v1.3.0
go: downloading github.com/drone/signal v1.0.0
go: downloading github.com/docker/go-units v0.3.3
go: downloading golang.org/x/net v0.0.0-20190923162816-aa69164e4478
go: downloading github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: downloading google.golang.org/grpc v1.30.0
go: downloading github.com/containerd/containerd v1.3.4
go: downloading github.com/docker/go-connections v0.3.0
go: downloading github.com/opencontainers/image-spec v1.0.1
go: downloading github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506
go: downloading github.com/pkg/errors v0.8.1
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/golang/protobuf v1.3.4
go: downloading google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
# echo $?
0
# which drone-server
/go/bin/drone-server