UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
MIT License
634 stars 53 forks source link

go get -u github.com/UnnoTed/fileb0x error #52

Closed temaowangluo closed 4 years ago

temaowangluo commented 5 years ago

github.com/airking05/termui

C:\Users\administrator\go\pkg\mod\github.com\airking05\termui@v2.2.0+incompatible\render.go:107:30: not enough arguments in call to stack.ParseDump have (bytes.Reader, os.File) want (io.Reader, io.Writer, bool) C:\Users\administrator\go\pkg\mod\github.com\airking05\termui@v2.2.0+incompatible\render.go:112:10: undefined: stack.Palette C:\Users\administrator\go\pkg\mod\github.com\airking05\termui@v2.2.0+incompatible\render.go:113:15: undefined: stack.SortBuckets C:\Users\administrator\go\pkg\mod\github.com\airking05\termui@v2.2.0+incompatible\render.go:113:33: undefined: stack.Bucketize C:\Users\administrator\go\pkg\mod\github.com\airking05\termui@v2.2.0+incompatible\render.go:114:22: undefined: stack.CalcLengths

exu commented 5 years ago

I have the same issue on Linux during getting fileb0x

❯ go get -u github.com/UnnoTed/fileb0x
go: finding github.com/maruel/panicparse v1.3.0
go: finding github.com/nsf/termbox-go latest
go: finding github.com/karrick/godirwalk v1.10.12
go: finding golang.org/x/sys latest
go: finding golang.org/x/crypto latest
go: finding github.com/bmatcuk/doublestar v1.1.4
go: finding gopkg.in/check.v1 latest
go: finding golang.org/x/net latest
go: finding github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: finding golang.org/x/tools latest
go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: finding golang.org/x/sync latest
go: finding github.com/mgutz/ansi latest
go: downloading github.com/maruel/panicparse v1.3.0
go: downloading github.com/bmatcuk/doublestar v1.1.4
go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: downloading github.com/karrick/godirwalk v1.10.12
go: downloading golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: extracting github.com/bmatcuk/doublestar v1.1.4
go: extracting github.com/karrick/godirwalk v1.10.12
go: extracting github.com/maruel/panicparse v1.3.0
go: extracting golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: extracting golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
# github.com/airking05/termui
/home/exu/pkg/mod/github.com/airking05/termui@v2.2.0+incompatible/render.go:107:30: not enough arguments in call to stack.ParseDump
        have (*bytes.Reader, *os.File)
        want (io.Reader, io.Writer, bool)
/home/exu/pkg/mod/github.com/airking05/termui@v2.2.0+incompatible/render.go:112:10: undefined: stack.Palette
/home/exu/pkg/mod/github.com/airking05/termui@v2.2.0+incompatible/render.go:113:15: undefined: stack.SortBuckets
/home/exu/pkg/mod/github.com/airking05/termui@v2.2.0+incompatible/render.go:113:33: undefined: stack.Bucketize
/home/exu/pkg/mod/github.com/airking05/termui@v2.2.0+incompatible/render.go:114:22: undefined: stack.CalcLengths
exu commented 5 years ago

@temaowangluo if you can use fileb0x without updater here is such version - I've removed updater code from fileb0x (didn't have time for more sophisticated solutions)
simply use:

 go get -u github.com/exu/fileb0x@v1.1.8

it works for me until fileb0x updater will be fixed

UnnoTed commented 4 years ago

Fixed by https://github.com/UnnoTed/fileb0x/commit/731ffd45f3d6d2750cd1fa2a62f90dbe87723fc5.