CocoaPods / CocoaPods/Molinillo

Vague error message for 0.0.0-pre

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
420
Forks
41
PR merge metrics
No merged PRs in 30d

Description

This looks like an edge case but I struggled to diagnose it for a few hours.

My podspec looks like this:

```
Pod::Spec.new do |s|
s.name = 'MyLib'
s.version = '0.0.0-alpha.0'
...
```

When I run `pod spec lint MyLib.podspec`, I get the following error, produced by Molinillo:

```
- ERROR | [iOS] unknown: Encountered an unknown error (CocoaPods could not find compatible versions for pod "MyLib":
In Podfile:
MyLib (from `/Users/bnickel/Documents/GitHub/my-lib/MyLib.podspec`)
```

After some experimentation, I discovered that any pre-release label on 0.0.0 triggers this error. Validation continues if I use `0.0.0` or `0.0.1-alpha.0`. This could either be resolved by adding support for 0.0.0 pre-releases or improving the message that gets logged in this case.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown MyLib.podspec and `pod spec lint MyLib.podspec`, then trace the Molinillo dependency-resolution path for a `0.0.0` pre-release. The issue leaves two possible outcomes open: support the version or improve the logged error; completion requires choosing and validating one of them.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.