diff --git a/common/assets/assets.go b/common/assets/assets.go index a81755a..15e5355 100644 --- a/common/assets/assets.go +++ b/common/assets/assets.go @@ -8,6 +8,7 @@ package assets import ( "errors" "fmt" + "github.com/daeuniverse/dae/common/consts" "io/fs" "os" "path/filepath" @@ -69,7 +70,7 @@ func (c *LocationFinder) GetLocationAsset(log *logrus.Logger, filename string) ( // Search dirs. var searchDirs []string - folder := "dae" + folder := consts.AppName // check if DAE_LOCATION_ASSET is set location := os.Getenv("DAE_LOCATION_ASSET") if location != "" { diff --git a/common/consts/app.go b/common/consts/app.go new file mode 100644 index 0000000..1d4df53 --- /dev/null +++ b/common/consts/app.go @@ -0,0 +1,5 @@ +package consts + +var ( + AppName = "dae" +) diff --git a/common/consts/ebpf.go b/common/consts/ebpf.go index 586cc64..e62c5ee 100644 --- a/common/consts/ebpf.go +++ b/common/consts/ebpf.go @@ -13,7 +13,6 @@ import ( ) const ( - AppName = "dae" BpfPinRoot = "/sys/fs/bpf" TaskCommLen = 16