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

Fix the initialization of projects in Homebrew-managed installations #6309

Merged
merged 1 commit into from
May 22, 2024

Conversation

pepicrft
Copy link
Contributor

Fixes #5921

Short description πŸ“

It turns out that the candidate that we were using for looking up init templates in a Homebrew installation was wrong. This PR fixes it.

How to test the changes locally 🧐

You'll have to build Tuist, reproduce a Homebrew installation with the binary in it, and then run tuist init.

Contributor checklist βœ…

  • The code has been linted using run mise run lint:fix
  • The change is tested via unit testing or acceptance testing, or both
  • The title of the PR is formulated in a way that is usable as a changelog entry
  • In case the PR introduces changes that affect users, the documentation has been updated

Reviewer checklist βœ…

  • The code architecture and patterns are consistent with the rest of the codebase
  • Reviewer has checked that, if needed, the PR includes the label changelog:added, changelog:fixed, or changelog:changed, and the title is usable as a changelog entry

@pepicrft pepicrft requested a review from a team May 21, 2024 16:51
@pepicrft pepicrft self-assigned this May 21, 2024
@pepicrft pepicrft requested review from waltflanagan and kwridan and removed request for a team May 21, 2024 16:51
@@ -57,7 +57,7 @@ public final class TemplatesDirectoryLocator: TemplatesDirectoryLocating {
share/
Templates
*/
bundlePath.parentDirectory.appending(try! RelativePath(validating: "share/Templates")),
bundlePath.parentDirectory.appending(try! RelativePath(validating: "share")),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line below, path.appending(component: Constants.templatesDirectoryName), is adding the /Templates component to the path.

@pepicrft pepicrft mentioned this pull request May 21, 2024
@pepicrft pepicrft added the changelog:fixed PR will be listed in the Fixed section of CHANGELOG label May 21, 2024
@pepicrft pepicrft merged commit 1fc08ab into main May 22, 2024
8 checks passed
@pepicrft pepicrft deleted the fix-init-when-homebrew branch May 22, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:fixed PR will be listed in the Fixed section of CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken tutorial
2 participants