Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Preserve path default options
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
LOU Yu Hong  
View profile  
 More options Jul 2 2012, 10:51 pm
From: LOU Yu Hong <louyuh...@gmail.com>
Date: Mon, 2 Jul 2012 19:51:44 -0700 (PDT)
Local: Mon, Jul 2 2012 10:51 pm
Subject: Preserve path default options

Hi,

Is there a way to set a default preserve_paths?
Seems like **/*.a should be preserved usually.

Thanks,
Leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile   Translate to Translated (View Original)
 More options Jul 3 2012, 12:56 pm
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Tue, 3 Jul 2012 18:56:47 +0200
Local: Tues, Jul 3 2012 12:56 pm
Subject: Re: Preserve path default options
Hi,

Can you open a ticket in the github repo of Cocoapods and provide more detailed use case?

On 03/lug/2012, at 04:51, LOU Yu Hong wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Pepas  
View profile   Translate to Translated (View Original)
 More options Jul 3 2012, 2:38 pm
From: Jason Pepas <c...@phunware.com>
Date: Tue, 3 Jul 2012 13:38:22 -0500
Local: Tues, Jul 3 2012 2:38 pm
Subject: Re: Preserve path default options

(speaking as just a user, not a core developer)

That sounds like a good idea, but in practice, I've learned to shy away
from anything "automagic".  As the Zen of Python says, explicit is usually
better than implicit.

With something like CocoaPods, you're going to end up with a handful of
very common, idiomatic use-cases (linking to a library, including a
framework, straight-up .m and .h files, adding bundles, etc), and there are
two ways to make these use-cases accessible to the users:

* bake the use-cases into the language / toolset (make it automagic)
* leave the user to figure it out on their own, but arm them with lots of
examples (the master repo) or tutorials/docs (the wiki)

I've come to prefer the latter, because it familiarizes the user with how
to find the answers on their own (e.g, greping the master repo).

The problem with automagic is that it tends to leave the user dependent on
the tool, and in practice there's never enough magic to cover all cases.

/2cents

On Mon, Jul 2, 2012 at 9:51 PM, LOU Yu Hong <louyuh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile   Translate to Translated (View Original)
 More options Jul 3 2012, 3:08 pm
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Tue, 3 Jul 2012 21:08:34 +0200
Local: Tues, Jul 3 2012 3:08 pm
Subject: Re: Preserve path default options

Hi Jason,

I had similar concerns before implementing this change as I dislike magic as well.  But I don't consider this feature magic as it is really simple to explain:
If you use it in the podspec CocoaPods will keep it around. If for any reason you want to keep it around just add it to the preserve paths.

I think that the current solution is a good compromise for the following reasons:

- It allows to clean unused subspecs.
- CocoaPods keeps around the files that it actually uses (plus a couple of other files like readmes and licenses).
- It is easy for a user to keep around a file with preserve_paths: there is never an unsupported edge case.
- It keeps the podspecs bit more concise, which never hurts.
- It gives control to the core of cocoapods, we can update the algorithm without changing all the podspecs.

The feature has just been introduced and there are some cases that could be automated as well some fine tuning to do.

I think that we can be more explicit in other ways: for example, the uses cases that you provided could have direct support in the podspec format, so it would be very clear what you are doing and we could handle it in the best possible way.

I would have preferred to have this discussion before implementing it :-) But anyway thanks for sharing your opinion.

On 03/lug/2012, at 20:38, Jason Pepas wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Pepas  
View profile   Translate to Translated (View Original)
 More options Jul 3 2012, 3:37 pm
From: Jason Pepas <c...@phunware.com>
Date: Tue, 3 Jul 2012 14:37:31 -0500
Local: Tues, Jul 3 2012 3:37 pm
Subject: Re: Preserve path default options

Hey, opinionated software and all that :)

Thanks for working hard on this project.

-jason

On Tue, Jul 3, 2012 at 2:08 PM, Fabio Pelosin <fabiopelo...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile   Translate to Translated (View Original)
 More options Jul 3 2012, 4:54 pm
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Tue, 3 Jul 2012 22:54:13 +0200
Local: Tues, Jul 3 2012 4:54 pm
Subject: Re: Preserve path default options

I didn't want to sound defensive. Actually, I think that good a discussion and reasonable critics are fundamental to improve :-)

On 03/lug/2012, at 21:37, Jason Pepas wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Pepas  
View profile  
 More options Jul 3 2012, 5:00 pm
From: Jason Pepas <c...@phunware.com>
Date: Tue, 3 Jul 2012 16:00:00 -0500
Subject: Re: Preserve path default options

Not at all.  I actually feel like this is consistent with the change where
all paths are cleaned by default, and consistency is very important.

The two combos which show consistency are:

* don't clean anything by default, don't preserve anything by default, or
* clean everything by default, but make some intelligent exceptions and
preserve those automatically

so, given this design decision, you are doing a good job of executing it.
 the important thing is for your software to have an opinion and stick to
it :)

-jason

On Tue, Jul 3, 2012 at 3:54 PM, Fabio Pelosin <fabiopelo...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eloy Durán  
View profile  
 More options Jul 4 2012, 3:48 am
From: Eloy Durán <eloy.de.en...@gmail.com>
Date: Wed, 4 Jul 2012 09:48:44 +0200
Local: Wed, Jul 4 2012 3:48 am
Subject: Re: Preserve path default options

I don’t think we should always preserve .a files. However, an option would be to see if the user specifies the `library`/`framework` attribute of the spec with a relative path (i.e. inside the pod), in which case it can be added to the files to preserve.

On Jul 3, 2012, at 11:00 PM, Jason Pepas wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »