Skip to content

Commit

Permalink
Merge pull request #194 from commitdev/env-add-project-name
Browse files Browse the repository at this point in the history
Adding PROJECT_NAME to env for makefile
  • Loading branch information
davidcheung committed Jul 6, 2020
2 parents 8537199 + 8fda195 commit 688992a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/apply/apply.go
Expand Up @@ -67,6 +67,7 @@ func applyAll(dir string, projectConfig projectconfig.ZeroProjectConfig, applyEn
// Add env vars for the makefile
envList := []string{
environmentArg,
fmt.Sprintf("PROJECT_NAME=%s", projectConfig.Name),
fmt.Sprintf("PROJECT_DIR=%s", path.Join(dir, mod.Files.Directory)),
fmt.Sprintf("REPOSITORY=%s", mod.Files.Repository),
}
Expand Down

0 comments on commit 688992a

Please sign in to comment.