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 error installing the AppleWWDRCA certificate on multiuser systems #8509

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Mar 13, 2017

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Description

Download AppleWWDRCA.cer as a Tempfile rather than to a specific filename.
Using Tempfile also means that ruby automatically removes the file from the system.

Motivation and Context

It can happen that the file /tmp/AppleWWDRCA.cer already exists, this
causes the install to fail because the file cannot be created as the
current user. Using a random temp file prevents this issue.

This happens on my CI server, which is a single mac with multiple users as
separate runners, the first to create the file /tmp/AppleWWDRCA.cer works,
all the other runners fail to run match.

@ohayon
Copy link
Contributor

ohayon commented Mar 13, 2017

Thanks for the PR @mcfedr, this looks like a good change. Currently these changes are causing the tests to break. If you could make sure that the tests are passing we will be able to get this merged in! 🐙

@mcfedr
Copy link
Contributor Author

mcfedr commented Mar 13, 2017

@ohayon yea, ill look at that, rspec didnt want to run locally so i pushed and hoped :)

Copy link
Collaborator

@giginet giginet left a comment

Choose a reason for hiding this comment

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

LGTM
Please fix CI.

It can happen that the file /tmp/AppleWWDRCA.cer already exists, this
causes the install to fail because the file cannot be created as the
current user.
Using a random temp file prevents this issue
@mcfedr
Copy link
Contributor Author

mcfedr commented Mar 13, 2017

@giginet All greened up!

@hjanuschka hjanuschka merged commit 1240fe3 into fastlane:master Mar 17, 2017
@mcfedr mcfedr deleted the apple_wwdrca_multiuser branch March 17, 2017 08:10
@KrauseFx KrauseFx mentioned this pull request Mar 20, 2017
@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.21.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Jun 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants