Skip to content

Commit

Permalink
fix(app): Use template's directory as application directory (#914)
Browse files Browse the repository at this point in the history
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
  • Loading branch information
craciunoiuc committed Oct 23, 2023
2 parents 78b23a3 + f6b836b commit d2cff05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unikraft/app/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,14 @@ func (app application) MakeArgs(tc target.Target) (*core.MakeArgs, error) {

// TODO: Platforms & architectures

appDir := app.workingDir
if app.template != nil {
appDir = app.template.Path()
}

args := &core.MakeArgs{
OutputDir: app.outDir,
ApplicationDir: app.workingDir,
ApplicationDir: appDir,
LibraryDirs: strings.Join(libraries, core.MakeDelimeter),
}

Expand Down

0 comments on commit d2cff05

Please sign in to comment.