teacat / chaturbate-dvr

😎 Chaturbate DVR - auto records the stream when it goes online!
MIT License
143 stars 18 forks source link

unknown field 'Aliases' in struct literal of type cli.StringFlag #2

Closed nephaste closed 2 years ago

nephaste commented 2 years ago

Hi

Tried to built it for differents Arch but getting error

./main.go:289:5: unknown field 'Aliases' in struct literal of type cli.StringFlag ./main.go:295:5: unknown field 'Aliases' in struct literal of type cli.IntFlag go version go1.16.4 linux/amd64

export APP=chaturbate-dvr

go get github.com/grafov/m3u8 go get github.com/parnurzeal/gorequest go get github.com/teacat/pathx go get github.com/urfave/cli

GOOS=linux GOARCH=arm64 go build -o ${APP}.arm64 GOOS=linux GOARCH=arm GOARM=5 go build -o ${APP}.armv5 GOOS=linux GOARCH=arm GOARM=7 go build -o ${APP}.armv7 GOOS=linux GOARCH=amd64 go build -o ${APP}.x64 GOOS=linux GOARCH=386 go build -o ${APP}.i386 GOOS=linux GOARCH=arm64 go build -o ${APP}.arm64

thanks for your help on this issue

image

YamiOdymel commented 2 years ago

You might have to use go get github.com/urfave/cli/v2 instead of go get github.com/urfave/cli

Because the urfave/cli has different versions. The project is a bit old and go.mod was not famous at the moment, sorry.

YamiOdymel commented 2 years ago

Hi, I've updated the source code and the go.mod, re-clone the repository and you should be fine.

module github.com/YamiOdymel/chaturbate-dvr

go 1.12

require (
    github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 // indirect
    github.com/grafov/m3u8 v0.11.1
    github.com/parnurzeal/gorequest v0.2.16
    github.com/pkg/errors v0.9.1 // indirect
    github.com/smartystreets/goconvey v1.7.2 // indirect
    github.com/stretchr/testify v1.7.0 // indirect
    github.com/teacat/pathx v0.0.0-20201109184104-55ec346a0c6d
    github.com/urfave/cli/v2 v2.3.0
    golang.org/x/net v0.0.0-20211109214657-ef0fda0de508 // indirect
    moul.io/http2curl v1.0.0 // indirect
)
nephaste commented 2 years ago

thanks a lot.... all is working as expected now :)