Skip to content

Commit

Permalink
pass directories
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Jan 7, 2025
1 parent 8e8f928 commit 9a5f652
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ func (m *Module) FirstRun(
dataDir string,
env map[string]string,
logger logging.Logger,
packagesDir,
viamHomeDir string,
) error {
fmt.Println("PACKAGES DIRECTORY: ", packagesDir)
fmt.Println("VIAM HOME DIRECTORY: ", viamHomeDir)
logger = logger.Sublogger("first_run").WithFields("module", m.Name)

unpackedModDir, err := m.exeDir(localPackagesDir)
Expand Down
2 changes: 1 addition & 1 deletion module/modmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ func (mgr *Manager) FirstRun(ctx context.Context, conf config.Module) error {
}
env := getFullEnvironment(conf, dataDir, mgr.viamHomeDir)

return conf.FirstRun(ctx, pkgsDir, dataDir, env, mgr.logger)
return conf.FirstRun(ctx, pkgsDir, dataDir, env, mgr.logger, mgr.packagesDir, mgr.viamHomeDir)
}

func (m *module) startProcess(
Expand Down

0 comments on commit 9a5f652

Please sign in to comment.