-
Notifications
You must be signed in to change notification settings - Fork 33
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
Migrate cashes directories #562
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks good 👍
const devices = fs.readdirSync(oldDeviceSetLocation); | ||
if (devices.includes(deviceUDID)) { | ||
return oldDeviceSetLocation; | ||
} | ||
return path.join(appCachesDir, "Devices", "iOS"); |
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.
should we return deviceSetLocation
here as well?
const pidFile = path.join(deviceSetLocation, this.deviceUDID, "lock.pid"); | ||
return pidFile; | ||
} | ||
|
||
public dispose() { | ||
public async dispose() { |
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.
why this change here? we don't call await in this method
This PR fixes a bug introduced by #562 witch always searched for localization settings in new caches directories for ios devices. Co-authored-by: Filip <[email protected]>
This PR changes the location of caches directory for all new devices, old devices remain in old cache location and can still be used and removed by the user by the user.