-
Notifications
You must be signed in to change notification settings - Fork 403
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
VERSION file #50
Comments
I definitely prefer to serialise versions in dedicated files as it makes programmatically changing them much easier. |
Awesome. I'll handle the migration later this week. |
This change is causing a "pod install" from within the Example folder to fail. The line that reads the VERSION file in the podspec fails. It seems like a bad idea in general to have a podspec make an assumption about the location of the VERSION file. How will this work with development pods? Perhaps the Rakefile should actually write the updated version number into the podspec instead of trying to read it from the VERSION file. |
As already previously discuted, this would be very hard to implement. A podspec is a Ruby source file, and users can do whatever they like in their podspec as long as it produces a valid Podspec Ruby object. They can put the version in a temporary Ruby variable and use this variable in their And for the associated tag it's worse, as they can use a variable too or compute it too, or use That would be quite a hell for a Rake task to update such a podspec in a safe manner without breaking anything. Quite a nightmare to implement, don't even think about it. |
Yes, I agree completely. But, the recent change to have the podspec read in the VERSION file seems to completely break the use of private pods and development pods. Am I missing something? Right now if you create a new pod using this template and then setup a project in the Example folder that references the podspec file in development it will result in an error when "pod install" is invoked. My suggest about having the Rakefile update the podspec was just that, a suggestion. I don't really like it. I don't like the idea of having the podspec contain the |
agreed. |
This seems to also break referencing a local Pod for me too, because the podspecs are copied without the associated version file. Running
|
The workaround I am using to enable development is this: s.version = begin; File.read('VERSION'); rescue; '9000.0.0'; end Which is very not ideal. |
@AliSoftware / @irrationalfab I think what we really should be doing is generating a JSON podspec and putting that in the local pod specs dir. Thoughts? |
@segiddins That would solve the problem. But this could then break dynamic Ruby podspec's when using :path. |
@segiddins I'm reserved about that. Storing the JSON podspec in the local podspecs dir (= And the pod-template is all about creating a pod template project with its associated podspec stored locally (with the podspec only sent to the local podspec dir or the trunk using either |
A better fix would be to evaluate the pod spec ruby from the directory it's from (in this case the :path). |
Agree with @kylef -Samuel E. Giddins On Jun 17, 2014, at 5:56 AM, Kyle Fuller notifications@github.com wrote: A better fix would be to evaluate the pod spec ruby from the directory it's from (in this case the :path). — |
Agreed as well. |
Now that all the specs are evaluated and serialized to JSON, I vote for making the default spec's version read from a
VERSION
file in the root of the project, and basing the rake tasks off of that. Thoughts?The text was updated successfully, but these errors were encountered: