GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change location of iOS build cache directory to ~/Library/Caches/ by sryze · Pull Request #22688 · react/react-native

Conversation

@sryze

@sryze sryze commented Dec 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Instead of using ~/.rncache use the special Caches directory designed for caching files. This fixes #21780.

Changelog:

[iOS] [Changed] - Moved iOS build cache directory from ~/.rncache to ~/Library/Caches/com.facebook.ReactNativeBuild

Test Plan:

  1. Execute ./scripts/ios-install-third-party.sh
  2. Check that the directory ~/Library/Caches/com.facebook.ReactNativeBuild is created and that the .tar.gz files of dependencies are present

or better:

  1. Create a new project: react-native init ReactNativeCacheTest
  2. cd ReactNativeCacheTest
    cp /path/to/react-native-code/scripts/ios-install-third-party.sh node_modules/react-native/scripts/
    
  3. In ios-install-third-party.sh change:
    fetch_and_unpack folly-2018.10.22.00.tar.gz https://github.com/facebook/folly/archive/v2018.10.22.00.tar.gz f70a75bfeb394363d2049a846bba118ffb3b368a
    
    to:
    fetch_and_unpack folly-2016.10.31.00.tar.gz https://github.com/facebook/folly/archive/v2016.10.31.00.tar.gz fb8cdf8962d8c9d0c20a150b6ec3b75d1fa50696
    
  4. react-native run-ios
  5. Check that the directory ~/Library/Caches/com.facebook.ReactNativeBuild is created and that the .tar.gz files of dependencies are present

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sryze
Change location of iOS build cache directory to ~/Library/Caches/
63d784b
Instead of using ~/.rncache use the special Caches directory designed
for caching files. This fixes react#21780.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 18, 2018
@sryze sryze mentioned this pull request Dec 18, 2018
Temporary files should be stored in ~/LIbrary/Caches or elsewhere, not ~/.rncache #21780
Closed
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Dec 18, 2018
@mcchrish

mcchrish commented Dec 18, 2018

Copy link
Copy Markdown

@sryze I think it should check if .rncache is still existing and still use that instead. Only use the new location if not found. This prevents redownloading the cache for existing installs and new installs will use the new location.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sryze
Reuse old cache directory if already exists (react#21780)
4150169
@sryze

sryze commented Dec 19, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I agree, it's a good idea. I updated the script to make it reuse the old directory if it exists.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react-native-bot react-native-bot added the ✅Changelog label Jan 15, 2019
@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 25, 2019
facebook-github-bot
facebook-github-bot approved these changes Jan 25, 2019
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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.

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
cpojer
cpojer approved these changes Jan 25, 2019
View reviewed changes

@cpojer cpojer left a comment

Copy link
Copy Markdown
Contributor

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.

Sounds good!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot closed this in 1024dc2 Jan 25, 2019
@react-native-bot

react-native-bot commented Jan 25, 2019

Copy link
Copy Markdown
Collaborator

@sryze merged commit 1024dc2 into facebook:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react react locked as resolved and limited conversation to collaborators Jan 25, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 25, 2019
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
@sryze
sryze deleted the update-cachedir branch October 12, 2019 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@cpojer cpojer cpojer approved these changes
@facebook-github-bot facebook-github-bot facebook-github-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Temporary files should be stored in ~/LIbrary/Caches or elsewhere, not ~/.rncache

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@sryze @mcchrish @react-native-bot @cpojer @facebook-github-bot @hramos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.