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

Create new workspace does not correctly handle dashes for the folder names #42

Closed
mitchelkuijpers opened this issue Jun 30, 2020 · 2 comments · Fixed by #43
Closed

Create new workspace does not correctly handle dashes for the folder names #42

mitchelkuijpers opened this issue Jun 30, 2020 · 2 comments · Fixed by #43
Assignees
Labels

Comments

@mitchelkuijpers
Copy link

Describe the bug
If you create a workspace which has dashes in the namespace. Polylith will create some folders like my-namespace instead of the expected my_namespace.

To Reproduce
Steps to reproduce the behavior:
First create workspace with a namespace with dashes in it.

$ lein polylith create w my-namepsace my-namespace.with-dashes

If you step into the just created project and then try to add a system like this:

$ lein polylith create s rest-api rest-api

You will get the following warning:

Warning. Could not create symbolic link '/tmp/my-namespace/systems/rest-api/src/my_namespace/with_dashes/rest_api': /tmp/my-namespace/systems/rest-api/src/my_namespace/with_dashes/rest_api
Warning. Could not create symbolic link '/tmp/my-namespace/environments/development/src/my_namespace/with_dashes/rest_api': /tmp/my-namespace/environments/development/src/my_namespace/with_dashes/rest_api
Warning. Could not create symbolic link '/tmp/my-namespace/environments/development/test/my_namespace/with_dashes/rest_api': /tmp/my-namespace/environments/development/test/my_namespace/with_dashes/rest_api

Expected behavior
Polylith does the right transformation of replacing dashes by underscores while creating systems, bases and components but it creates the wrong folders on workspace setup. I expect it to also create the right folder on a creation of a workspace.

Screenshots

Operating System (please complete the following information):

  • OS: [Linux]
  • Version [5.7.2-arch1-1]

Versions (please complete the following information):

  • Leiningen: [2.9.3]
  • Java: [1.8.0_253]
  • Polylith: [2.3]

Additional context

@mitchelkuijpers
Copy link
Author

Wow that was fast, thank you so much!

@tengstrand
Copy link
Owner

You are welcome! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants