-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bower should not install a pre-release version if a non-pre-release version is available #782
Comments
It should be noted that semver spec considers |
I agree. I assumed it worked like that. |
+1 - while technically correct, not what a typical end-user of bower would expect. |
👍 I've put this for |
+1. Btw, if there's going to be a divergence from semver, is it worth informing the user that a 'technically' more recent version is available as part of the |
This exact problem was (is?) in npm, which meant that when grunt started Definitely 👍 to fixing it. On 15 August 2013 15:16, André Cruz [email protected] wrote:
|
I think it's worth noting that semver doesn't really have a good concept of "just give me a package with no constraints." That a version compares as greater than or less than another version doesn't imply that it is the best choice to resolve to in a vacuum. It might be worth seeing if this is something that can be standardized into the next version of semver. |
The PR is this: #773 Note that the title has nothing to do with this issue, but it ended up fixing it since it is somewhat related and we decided to fix both issues in a single PR. |
#773 was merged, fixing this issue! |
Cross reference from petkaantonov/bluebird#60 (comment)
This is a reasonable compromise between semver compliance and ignoring the alphas of popular projects. |
Current behavior
Let's say jQuery has the following versions:
If you
bower install jquery
without specifying a version, the release candidate (1.2.0-rc.1
) is installed by default.Preferred behavior
Below is a table of the available versions for a given package versus the version bower installs by default, when no version is specified (i.e.
bower install foo
).1.0.7
,1.2.0-rc.1
}1.0.7
1.0.7
,2.0.0-rc.1
}1.0.7
1.2.0-rc.1
}1.2.0-rc.1
1.2.0-rc.1
,1.2.0-rc.2
}1.2.0-rc.2
2.0.0-rc.1
,1.2.0-rc.2
}2.0.0-rc.1
Rational
Users of Bower should expect to get stable packages by default. This is especially important in reducing the amount of friction for new users. Component authors should be able to use bower to release unstable pre-release versions of their components to advanced users to test without making the default install unstable.
The text was updated successfully, but these errors were encountered: