Skip to content

Commit

Permalink
Fix build on MacOS, remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-p committed Feb 9, 2024
1 parent 6ae61a3 commit 03b6a8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
20 changes: 0 additions & 20 deletions component/discovery/process/analyze/cache/buildid.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@ import (

// copypaste from https://github.com/grafana/pyroscope/blob/8a7fe2b80c219bfda9be685ff27ca1dee4218a42/ebpf/symtab/elf/buildid.go#L31

//type BuildID struct {
// ID string
// Typ string
//}
//
//func GNUBuildID(s string) BuildID {
// return BuildID{ID: s, Typ: "gnu"}
//}
//func GoBuildID(s string) BuildID {
// return BuildID{ID: s, Typ: "go"}
//}
//
//func (b *BuildID) Empty() bool {
// return b.ID == "" || b.Typ == ""
//}
//
//func (b *BuildID) GNU() bool {
// return b.Typ == "gnu"
//}

var (
ErrNoBuildIDSection = fmt.Errorf("build ID section not found")
)
Expand Down
2 changes: 2 additions & 0 deletions component/discovery/process/analyze/cache/cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package cache

import (
Expand Down
2 changes: 2 additions & 0 deletions component/discovery/process/analyze/cache/cache_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package cache

import (
Expand Down
2 changes: 2 additions & 0 deletions component/discovery/process/list-processes/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package main

import (
Expand Down

0 comments on commit 03b6a8b

Please sign in to comment.