Skip to content

Commit

Permalink
Remove most of selfdescribe package (signalfx#3688)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored and samiura committed Sep 25, 2023
1 parent 7b187f9 commit 91d21b6
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 788 deletions.
3 changes: 1 addition & 2 deletions internal/signalfx-agent/pkg/selfdescribe/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package selfdescribe

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -79,7 +78,7 @@ func CollectMetadata(root string) ([]PackageMetadata, error) {

var pkg PackageMetadata

if bytes, err := ioutil.ReadFile(path); err != nil {
if bytes, err := os.ReadFile(path); err != nil {
return fmt.Errorf("unable to read metadata file %s: %w", path, err)
} else if err := yaml.UnmarshalStrict(bytes, &pkg); err != nil {
return fmt.Errorf("unable to unmarshal file %s: %w", path, err)
Expand Down
145 changes: 0 additions & 145 deletions internal/signalfx-agent/pkg/selfdescribe/monitors.go

This file was deleted.

64 changes: 0 additions & 64 deletions internal/signalfx-agent/pkg/selfdescribe/notes.go

This file was deleted.

Loading

0 comments on commit 91d21b6

Please sign in to comment.