Skip to content

Commit fe8b555

Browse files
committed
use command_notwin.go for cleaner solution
1 parent a4c884a commit fe8b555

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

cmd/agent/subcommands/run/command_darwin.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

cmd/agent/subcommands/run/command_notwin.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
// This product includes software developed at Datadog (https://www.datadoghq.com/).
44
// Copyright 2016-present Datadog, Inc.
55

6-
//go:build !windows && !darwin
6+
//go:build !windows
77

88
package run
99

10-
import "go.uber.org/fx"
10+
import (
11+
"go.uber.org/fx"
12+
13+
softwareinventoryfx "github.com/DataDog/datadog-agent/comp/softwareinventory/fx"
14+
)
1115

1216
func getPlatformModules() fx.Option {
13-
return fx.Options()
17+
return fx.Options(
18+
softwareinventoryfx.Module(),
19+
)
1420
}

0 commit comments

Comments
 (0)