folderReference wrong naming when using relative operators
What problem or need do you have?
If you use .folderReference(".."), which is used often when you want to generate package test project, folder reference is added with the exact relative operator name .., also looks like there is currently no option to change reference name.
Potential solution
Better option would be to resolve name of the folder when using relative path and by default set folder reference to the exact folder name, not relative operator name.
Also it would be good practice to add additional parameter to be able to set arbitrary reference name when needed, as xcode also allows renaming reference to any name.
macOS version
14.5
Tuist version
4.20.0
Xcode version
15.4
@mirkokg would you mind including a project where we can reproduce the issue and the steps to reproduce it?
Hi, @mirkokg. I'm Dosu, and I'm helping the tuist team manage their backlog and am marking this issue as stale.
Issue Summary:
- You reported that using
.folderReference("..")in Tuist results in the folder reference being named literally as.., which is not ideal. - You suggested that Tuist should resolve the relative path to the actual folder name by default and allow a custom reference name option, similar to Xcode.
- A maintainer requested a reproducible project and steps to reproduce the issue to investigate further.
- No further updates or additional information have been provided since then.
Next Steps:
- Please let me know if this issue is still relevant with the latest version of Tuist by commenting here.
- If I don’t hear back within 7 days, this issue will be automatically closed.
Thanks for your understanding and contribution!