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

Update to Xcode 9.3 #86

Merged
merged 6 commits into from
Apr 27, 2018
Merged

Update to Xcode 9.3 #86

merged 6 commits into from
Apr 27, 2018

Conversation

djbe
Copy link
Member

@djbe djbe commented Apr 24, 2018

Note that, even though there is a change to use compactMap, this is only in the tests, so it isn't a breaking change for our users.

.ruby-version Outdated
@@ -1 +1 @@
ruby-2.4.2
2.4.4
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the version bundled with high Sierra again? We should try to keep the same version of ruby as the one installed by default on the latest macOS, especially for people not familiar with ruby let alone rvm or rbenv or similar tools

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm just using what's available on CI:
https://circle-macos-docs.s3.amazonaws.com/image-manifest/build-405/index.html

If people don't have rvm or rbenv, then they won't even notice this change.

Copy link
Contributor

Choose a reason for hiding this comment

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

The problem here is that if we later modify our ruby scripts (like Rakefiles) and happen to use methods that are only available in 2.4.4 but not 2.4.2, then CI will pass (and locally on your machine it will probably pass too as you do have rvm) but on any other contributor machine it won't work if they don't have rvm

Copy link
Member Author

Choose a reason for hiding this comment

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

From random blog posts I think High Sierra came with ruby 2.3.0?

But like I said, we have to use ruby versions as they are on CI. And I think I had to use ruby 2.4 at some point otherwise some gems kept breaking for me? (during upgrade to CircleCI 2.0)

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I think the default (system) ruby version is 2.0.0, but then I kept hitting this error:
https://circleci.com/gh/SwiftGen/SwiftGen/453

Copy link
Contributor

Choose a reason for hiding this comment

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

it's probably worth setting it to 2.3.0 then 😉

Copy link
Contributor

@AliSoftware AliSoftware Apr 26, 2018

Choose a reason for hiding this comment

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

(which is high Sierra's default, which is the min OS required to use Xcode 9 anyway? which is the min Xcode required to build SwiftGen)

@@ -194,7 +194,7 @@ extension Filters.Strings {
/// - arguments: the arguments to the function; expecting zero
/// - Returns: the string with first letter being uppercased
/// - Throws: FilterError.invalidInputType if the value parameter isn't a string
private static func upperFirstLetter(_ value: String) -> String {
internal static func upperFirstLetter(_ value: String) -> String {
Copy link
Contributor

Choose a reason for hiding this comment

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

The code style on the rest of the code base seem to be not mentioning access control if it's internal (the default); better be consistent here then?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed to access the method from the SwiftIdentifier bit of code.

@djbe djbe merged commit 008100a into master Apr 27, 2018
@djbe djbe deleted the feature/xcode-9.3 branch April 27, 2018 21:30
@djbe djbe added this to the 2.6.0 milestone Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants