Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: allow to modify app name and assets dir name #144

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common/assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package assets
import (
"errors"
"fmt"
"github.com/daeuniverse/dae/common/consts"
"io/fs"
"os"
"path/filepath"
Expand Down Expand Up @@ -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 != "" {
Expand Down
5 changes: 5 additions & 0 deletions common/consts/app.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package consts

var (
AppName = "dae"
)
1 change: 0 additions & 1 deletion common/consts/ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

const (
AppName = "dae"
BpfPinRoot = "/sys/fs/bpf"

TaskCommLen = 16
Expand Down