-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
No default lastKnownFileType #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comment. Would be great to get some input from @yonaskolb who introduced this change.
CHANGELOG.md
Outdated
@@ -1,5 +1,9 @@ | |||
🚀 Check out the guidelines [here](https://github.com/xcodeswift/contributors/blob/master/CHANGELOG_GUIDELINES.md) | |||
|
|||
## master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are not necessary. We'll tag this PR with the proper milestone and we'll update the Changelog accordingly when we make the next release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted👌
@@ -52,7 +52,7 @@ public class PBXFileReference: PBXObject, Hashable { | |||
xcLanguageSpecificationIdentifier: String? = nil) { | |||
self.fileEncoding = fileEncoding | |||
self.explicitFileType = explicitFileType | |||
self.lastKnownFileType = lastKnownFileType ?? path.flatMap { PBXFileReference.fileType(path: Path($0)) } | |||
self.lastKnownFileType = lastKnownFileType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are your thoughts on this @yonaskolb?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess if that' really the case. I can see why removing this might be good for other reasons as well, where we might be calculating the wrong lastKnownFileType
as PBXFileReference.fileType(
would never be perfect
e143d41
to
18bef4b
Compare
Short description 📝
Reverts auto calculation of
lastKnownFileType
introduced in #58.Solution 📦
It turns out that Xcode sets
explicitFileType
instead oflastKnownFileType
for macOS app target automatically. So we shouldn't set default value for that.