Skip to content

Commit d95f55c

Browse files
authored
fix: take base of projectName for config (#272)
<!-- 🚨 ATTENTION! 🚨 This PR template is REQUIRED. PRs not following this format will be closed without review. Requirements: - PR title must follow commit conventions: https://www.conventionalcommits.org/en/v1.0.0/ - Label your PR with the correct type (e.g., 🐛 Bug, ✨ Enhancement, 🧪 Test, etc.) - Provide clear and specific details in each section --> **Motivation:** <!-- Explain here the context, and why you're making that change. What is the problem you're trying to solve. --> As a devkit user, I want to be able to create a project relative to my current position and have the projectName be placed correctly to prevent later cmds from failing. **Modifications:** <!-- Describe the modifications you've done from a high level. What are the key technical decisions and why were they made? --> - Takes `filepath.Base(projectName)` for config project name **Result:** <!-- *After your change, what will change. --> - No container naming problems after relative path creates
1 parent 607a52c commit d95f55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func copyDefaultConfigToProject(logger iface.Logger, targetDir, projectName, pro
281281
if err := yaml.Unmarshal([]byte(configContent), &cfg); err != nil {
282282
return fmt.Errorf("failed to unmarshal config YAML: %w", err)
283283
}
284-
cfg.Config.Project.Name = projectName
284+
cfg.Config.Project.Name = filepath.Base(projectName)
285285
cfg.Config.Project.ProjectUUID = projectUUID
286286
cfg.Config.Project.TelemetryEnabled = telemetryEnabled
287287
cfg.Config.Project.TemplateBaseURL = templateBaseURL

0 commit comments

Comments
 (0)