You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run tuist edit in a project where purchases-ios package is cloned. It may be cloned into ./Tuist/.build/... or ./Tuist/Dependencies/....
For some reason, this package contains symbolic links back to its root directory. For example: purchases-root. When Tuist runs the edit command, it eventually goes down a call stack like this:
EditCommand.run
EditService.run
ProjectEditor.edit
ManifestFilesLocator.locateProjectManifests
ManifestFilesLocator.fetchTuistManifestsFilePaths
FileHandler.glob
AbsolutePath.glob
Glob.init
Glob.expandGlobStar
FileManager.subdirectoriesResolvingSymbolicLinks
This is where it gets in trouble. There is no guard against an infinite search because a symbolic link leads to a location above itself.
How do we reproduce it?
Add purchases-ios package as a dependency to a tuist workspace
Run tuist fetch
Run tuist edit
Error log
the tuist edit command will hang because it's in a loop
macOS version
14.2
Tuist version
3.35.4
Xcode version
15.1.0
The text was updated successfully, but these errors were encountered:
What happened?
Run
tuist edit
in a project where purchases-ios package is cloned. It may be cloned into./Tuist/.build/...
or./Tuist/Dependencies/...
.For some reason, this package contains symbolic links back to its root directory. For example: purchases-root. When Tuist runs the edit command, it eventually goes down a call stack like this:
This is where it gets in trouble. There is no guard against an infinite search because a symbolic link leads to a location above itself.
How do we reproduce it?
tuist fetch
tuist edit
Error log
the
tuist edit
command will hang because it's in a loopmacOS version
14.2
Tuist version
3.35.4
Xcode version
15.1.0
The text was updated successfully, but these errors were encountered: