Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proc_maps.go and proc_maps_test.go import "golang.org/x/sys/unix", but only guard against MS Windows in the build tag. However, that package only works with the build tags also used in golang.org/x/sys/unix/syscall.go. This commits brings the build tags in line with that. The procfs package then compiles again on all GOOS/GOARCH (but returns an error for unsupported platforms, as expected by users like the prometheus/client_golang process collector). Cf. prometheus/client_golang#758 Signed-off-by: beorn7 <[email protected]>
- Loading branch information