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

Issue #2400 Shared cache for built dependencies #2608

Closed
wants to merge 0 commits into from

Conversation

kenji21
Copy link
Contributor

@kenji21 kenji21 commented Oct 8, 2018

See discussion in issue #2400

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Invalid configuration for 'file_header'. Falling back to default.
Linting Swift files at paths 
No lintable files found at paths: ''

Source/CarthageKit/Xcode.swift Outdated Show resolved Hide resolved
Source/CarthageKit/Xcode.swift Outdated Show resolved Hide resolved
Source/XCDBLD/XcodeVersion.swift Outdated Show resolved Hide resolved
@tmspzz
Copy link
Member

tmspzz commented Oct 30, 2018

@kenji21 Thanks for the PR 🎉

Can you please comment on the chunks that you have move around and signal them to me? This would make it easier for me to review.

@kenji21
Copy link
Contributor Author

kenji21 commented Oct 30, 2018

@blender no problems, just done it, and of course will make all changes you ask for as you know better the project than me

Copy link
Member

@tmspzz tmspzz left a comment

Choose a reason for hiding this comment

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

LGTM, over to @mdiep

@kenji21
Copy link
Contributor Author

kenji21 commented Nov 22, 2018

Do you want me to rebase my commit on top of current master ?

(currently: This branch is 1 commit ahead, 10 commits behind Carthage:master.)

@mdiep
Copy link
Member

mdiep commented Nov 28, 2018

I'm not sure we should add a shared cache like this that's not opt-in. I was thinking there'd be a flag to turn this on. Since we never clean this out, I'm hesitant to start storing additional data that might fill up users' drives.

@kenji21
Copy link
Contributor Author

kenji21 commented Nov 28, 2018

@blender was thinking that adding more and more "command options" was not recommended, so I reused the existing "cache" flag: #2400 (comment)

We have deployed it, and migrating from an older Xcode to a new one (and swift) with this patch makes us being able to update / bootstrap with the new xcode/swiftc version very quickly

@mdiep
Copy link
Member

mdiep commented Nov 28, 2018

Hmm… I'll take another look

@stale
Copy link

stale bot commented Dec 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 28, 2018
@stale stale bot removed the stale label Dec 28, 2018
@GabKlein
Copy link

Hello,

Is this MR would solve this issue as well #2120 ?
It seems that introducing a new environment variable to change the value of userCachesURL would solve it.

@kenji21
Copy link
Contributor Author

kenji21 commented Jan 9, 2019

Just force-pushed to fix the conflit (arguments of a method I moved were reformatted to split them one per line)

@acecilia
Copy link
Contributor

acecilia commented Feb 7, 2019

What is preventing this to move forward?

@kenji21
Copy link
Contributor Author

kenji21 commented Feb 7, 2019

this one: #2677 that makes my last "update to master" CI build failing

2019-01-09 12:52:17.688 xctest[7209:30478] Building scheme "Archimedes Mac" in Archimedes.xcodeproj
/Users/travis/build/Carthage/Carthage/Tests/CarthageKitTests/XcodeSpec.swift:362: error: -[CarthageKitTests.XcodeSpec should build for multiple platforms] : failed - expected to be nil, got <Unable to determine framework Swift version: Could not derive version from header file.>

@kenji21
Copy link
Contributor Author

kenji21 commented Feb 12, 2019

Ok, I moved my commit to a branch https://github.com/openium/Carthage/tree/feature-2400-shared-cache waiting for #2677 to be solved, so it closed this issue, I'll PR again up to date with current master once #2677 will be fixed

@JWShroyer
Copy link

This closed PR doesn't seem to be linked to any other PR, but based off what I was reading in #2677 that code should be implemented in 0.33 by the author, @kenji21. Is this work being worked on elsewhere?

@kenji21
Copy link
Contributor Author

kenji21 commented Aug 19, 2020

@JWShroyer: The updated PR is this one : #2716

@JWShroyer
Copy link

Thanks! 🙇‍♂️

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.

None yet

7 participants