build: Automatically Build Binaries
Closed this issue · 3 comments
elithrar commented
We should automatically build binaries for the major platforms: Windows, Darwin (macOS) & Linux via TravisCI.
Refer to https://github.com/cloudflare/logshare/blob/master/.travis.yml
(I'll take a look this weekend)
grempe commented
👍
The current release binaries don't include the worker capabilities, and I've been unable to get the tool to compile against current cloudflare-go
code.
❯ make dist-osx
GOOS=darwin go build -o dist/cf-osx
# github.com/ejcx/cf/cmd
cmd/api.go:1142:17: api.CreateWorkerRoute undefined (type *cloudflare.API has no field or method CreateWorkerRoute)
cmd/api.go:1142:44: undefined: cloudflare.WorkerRoute
cmd/api.go:1150:17: api.UpdateWorkerRoute undefined (type *cloudflare.API has no field or method UpdateWorkerRoute)
cmd/api.go:1150:53: undefined: cloudflare.WorkerRoute
cmd/api.go:1158:17: api.ListWorkerRoutes undefined (type *cloudflare.API has no field or method ListWorkerRoutes)
cmd/api.go:1180:17: api.UploadWorker undefined (type *cloudflare.API has no field or method UploadWorker)
cmd/api.go:1180:32: undefined: cloudflare.WorkerRequestParams
cmd/api.go:1187:17: api.DeleteWorker undefined (type *cloudflare.API has no field or method DeleteWorker)
cmd/api.go:1187:32: undefined: cloudflare.WorkerRequestParams
cmd/api.go:1194:17: api.ListWorkerScripts undefined (type *cloudflare.API has no field or method ListWorkerScripts)
cmd/api.go:1194:17: too many errors
make: *** [dist-osx] Error 2
elithrar commented
This repo pins to an older version of cloudflare-go - v0.8.5 - and you’ll
want something later than
cloudflare/cloudflare-go@bc8641a
to grab the Workers API.
…On Sat, Oct 20, 2018 at 11:00 PM Glenn Rempe ***@***.***> wrote:
👍
The current release binaries don't include the worker capabilities, and
I've been unable to get the tool to compile against current cloudflare-go
code.
❯ make dist-osx
GOOS=darwin go build -o dist/cf-osx
# github.com/ejcx/cf/cmd
cmd/api.go:1142:17 <http://github.com/ejcx/cf/cmdcmd/api.go:1142:17>: api.CreateWorkerRoute undefined (type *cloudflare.API has no field or method CreateWorkerRoute)
cmd/api.go:1142:44: undefined: cloudflare.WorkerRoute
cmd/api.go:1150:17: api.UpdateWorkerRoute undefined (type *cloudflare.API has no field or method UpdateWorkerRoute)
cmd/api.go:1150:53: undefined: cloudflare.WorkerRoute
cmd/api.go:1158:17: api.ListWorkerRoutes undefined (type *cloudflare.API has no field or method ListWorkerRoutes)
cmd/api.go:1180:17: api.UploadWorker undefined (type *cloudflare.API has no field or method UploadWorker)
cmd/api.go:1180:32: undefined: cloudflare.WorkerRequestParams
cmd/api.go:1187:17: api.DeleteWorker undefined (type *cloudflare.API has no field or method DeleteWorker)
cmd/api.go:1187:32: undefined: cloudflare.WorkerRequestParams
cmd/api.go:1194:17: api.ListWorkerScripts undefined (type *cloudflare.API has no field or method ListWorkerScripts)
cmd/api.go:1194:17: too many errors
make: *** [dist-osx] Error 2
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AABIcDConQZd0rCY_DUyP_LULKRDmqSpks5unA14gaJpZM4Vcql2>
.