gf icon indicating copy to clipboard operation
gf copied to clipboard

build fail

Open dongdio opened this issue 7 months ago β€’ 9 comments

github.com/olekukonko/tablewriter

The dependency package has been updated, resulting in a packaging error

github.com/gogf/gf/v2/net/ghttp

/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)

dongdio avatar May 12 '25 09:05 dongdio

me too

mrfuwei avatar May 12 '25 14:05 mrfuwei

github.com/olekukonko/tablewriter

The dependency package has been updated, resulting in a packaging error

github.com/gogf/gf/v2/net/ghttp

/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)

@dongdio You need update go.mod file,find this line github.com/olekukonko/tablewriter v1.0.3 // indirect Modify it to v0.0.5 After saving, you should be able to run it again

mrfuwei avatar May 12 '25 15:05 mrfuwei

@mrfuwei Ok. I'll test it. Thank you.

dongdio avatar May 13 '25 01:05 dongdio

me too

C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)

anazh avatar May 14 '25 08:05 anazh

me too

myfeed200 avatar May 16 '25 10:05 myfeed200

me too

shengdoushi avatar May 27 '25 02:05 shengdoushi

ζˆ‘δΉŸζ˜―

lifetin avatar May 29 '25 06:05 lifetin

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


Me too

Issues-translate-bot avatar May 29 '25 06:05 Issues-translate-bot

δΈΊδ»€δΉˆθ¦η”¨δ½Žη‰ˆζœ¬ε‘’?εΊ”θ―₯ζ”―ζŒι«˜η‰ˆζœ¬tablewriterηš„api.

mizk avatar Jun 11 '25 05:06 mizk

github.com/olekukonko/tablewriter The dependency package has been updated, resulting in a packaging error

github.com/gogf/gf/v2/net/ghttp

/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)

@dongdio You need update go.mod file,find this line github.com/olekukonko/tablewriter v1.0.3 // indirect Modify it to v0.0.5 After saving, you should be able to run it again

It works, Thanks!

But why?

lovefishs avatar Jun 27 '25 12:06 lovefishs

ζŒ‰ζ–‡ζ‘£ζ“δ½œοΌŒζˆ–θ€…η›΄ζŽ₯ζ›΄ζ–°εˆ°2.9.3 https://goframe.org/docs/faq#3%E5%8D%87%E7%BA%A7%E5%BC%95%E8%B5%B7%E5%85%BC%E5%AE%B9%E6%80%A7%E6%8A%A5%E9%94%99-netghttpghttp_servergo3009-tablesetheader-undefined-type-tablewritertable-has-no-field-or-method-setheader

hailaz avatar Sep 23 '25 10:09 hailaz