Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Inline versioning for `bower install` #30

Closed
jonathanong opened this Issue Sep 11, 2012 · 8 comments

Comments

Projects
None yet
8 participants

For npm you can do npm install express@3 or npm install express@2. Would be nice if you could something similar for bower, specifically for repos whose working branch is master (instead of a wip branch like Twitter Bootstrap) but have tags for releases.

Have you tried something like the following: bower install jquery#1.7.1

Seems to work over here.

oh i guess i should have been more specific. I was trying to do it with git repos with tagged versions. jquery is special because it's registered, where as other ones, such as select2 or hammer.js, are not.

Ex. for https://github.com/ivaynberg/select2/tree/release-3.2:

bower install git://github.com/ivaynberg/select2.git#release-3.2
bower cloning git://github.com/ivaynberg/select2.git
bower fetching select2
bower cached git://github.com/ivaynberg/select2.git
bower error Can not find tag: select2#release-3.2
bower copying /Users/jong/.bower/select2

+1 for this, being able to checkout a specific git branch would be really nice.

Contributor

fat commented Sep 14, 2012

oh yeah, that's a bug

arikon commented Sep 21, 2012

This issue is critical to our bem/bem-tools project to support installing components during project build process.

okonet commented Oct 16, 2012

Same here, I added a tag to a forked version of the repository on GitHub, but seems bower doesn't recognise it:

> bower install git@github.com:okonet/jquery.transit.git#v0.1.4
bower cloning git@github.com:okonet/jquery.transit.git
bower cached git@github.com:okonet/jquery.transit.git
bower fetching jquery.transit
bower error Can not find tag: jquery.transit#v0.1.4

but:

--- /jquery.transit ‹master› » g tag
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
Owner

satazor commented Oct 16, 2012

@okonet This is because bower is using a cached version of the old jquery.transit that has no 0.1.4 tag.
You have to manually clean the bower cache or use my fork of bower that has this implemented:

See the features and bug fixes of my fork:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment