Cannot compile because github.com/cloudfoundry/gosigar
- 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
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