Skip to content

Commit 4e19c8e

Browse files
committed
Fixed search-replace artefacts
1 parent b911018 commit 4e19c8e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require (
77
github.com/prometheus/client_model v0.6.1
88
github.com/prometheus/common v0.55.0
99
github.com/shirou/gopsutil/v3 v3.24.5
10+
github.com/spf13/cobra v1.8.1
1011
github.com/spf13/viper v1.20.0-alpha.6
1112
github.com/stretchr/testify v1.9.0
1213
go.opentelemetry.io/collector/otelcol v0.107.0
@@ -231,7 +232,6 @@ require (
231232
github.com/sourcegraph/conc v0.3.0 // indirect
232233
github.com/spf13/afero v1.11.0 // indirect
233234
github.com/spf13/cast v1.6.0 // indirect
234-
github.com/spf13/cobra v1.8.1 // indirect
235235
github.com/spf13/pflag v1.0.5 // indirect
236236
github.com/stretchr/objx v0.5.2 // indirect
237237
github.com/subosito/gotenv v1.6.0 // indirect

internal/config/confighandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func GetDefaultAgentPath() string {
102102
func GetDefaultFilestoragePath() string {
103103
switch currOS := runtime.GOOS; currOS {
104104
case "darwin":
105-
return filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Observe", "github.com/observeinc/observe-agent", "filestorage")
105+
return filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Observe", "observe-agent", "filestorage")
106106
case "windows":
107107
return os.ExpandEnv("$ProgramData\\Observe\\observe-agent\\filestorage")
108108
case "linux":

internal/root/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var CfgFile string
1616

1717
// RootCmd represents the base command when called without any subcommands
1818
var RootCmd = &cobra.Command{
19-
Use: "github.com/observeinc/observe-agent",
19+
Use: "observe-agent",
2020
Short: "A brief description of your application",
2121
Long: `A longer description that spans multiple lines and likely contains
2222
examples and usage of using your application. For example:
@@ -64,7 +64,7 @@ func InitConfig() {
6464
} else {
6565
viper.AddConfigPath(config.GetDefaultAgentPath())
6666
viper.SetConfigType("yaml")
67-
viper.SetConfigName("github.com/observeinc/observe-agent")
67+
viper.SetConfigName("observe-agent")
6868
}
6969

7070
viper.AutomaticEnv() // read in environment variables that match

observecol/otelcollector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func makeMapProvidersMap(providers ...confmap.Provider) map[string]confmap.Provi
2424

2525
func GenerateCollectorSettings(URIs []string) *otelcol.CollectorSettings {
2626
buildInfo := component.BuildInfo{
27-
Command: "github.com/observeinc/observe-agent",
27+
Command: "observe-agent",
2828
Description: "Observe Distribution of Opentelemetry Collector",
2929
Version: build.Version,
3030
}

0 commit comments

Comments
 (0)