pingcap / pingcap/tidb

Cannot compile because github.com/cloudfoundry/gosigar

Open
#49,742 5 comments 0 reactions 0 assignees View on GitHub
affects-8.5 component/build may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/major type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:20:12: cpuUsage.Get undefined (type Cpu has no field or method Get)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:30:14: cpuUsage.Get undefined (type Cpu has no field or method Get)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:49:11: l.Get undefined (type LoadAverage has no field or method Get)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:55:11: m.Get undefined (type Mem has no field or method Get)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:61:11: m.GetIgnoringCGroups undefined (type Mem has no field or method GetIgnoringCGroups)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/concrete_sigar.go:67:11: s.Get undefined (type Swap has no field or method Get)
/Users/wubin1989/.gvm/pkgsets/go1.21.5/global/pkg/mod/github.com/cloudfoundry/gosigar@v1.3.6/sigar_shared.go:12:21: procTime.Get undefined (type *ProcTime has no field or method Get)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the compilation failure involving github.com/cloudfoundry/gosigar@v1.3.6, then inspect concrete_sigar.go and sigar_shared.go at the reported method calls. Done means the dependency builds successfully and these undefined-method errors no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.