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

[BUG] terramate create: wrong directory hierarchy creation when providing absolute path #1954

Open
AJCandfield opened this issue Nov 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AJCandfield
Copy link

Describe the bug

When using terramate create ... with an absolute path, a hierarchy of directories starting at / is created at the desired directory.

To Reproduce

Steps to reproduce the behavior:

  1. Context: in any directory.
  2. Run command
terramate create "/Users/foo/code/iac/terraform/clouds/gcp/dev/dev0/europe-west1/service/_resources/project/"
  1. Error
Created stack /terraform/clouds/gcp/dev/dev0/europe-west1/service0-poc/_resources/project/Users/foo/code/iac/terraform/clouds/gcp/dev/dev0/europe-west1/service/_resources/project/

Expected behavior

I would expect terramate create to only create the last directory in the hierarchy. In the above case, project.

Environment:

  • OS: MacOS
  • OS Version: Sonoma 14.5
  • Git Version: 2.47.0
  • Terramate Version: 0.11.1
@AJCandfield AJCandfield added the bug Something isn't working label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant