mcasimir / mobile-angular-ui

Angular.js Mobile UI Framework with Bootstrap 3
http://mobileangularui.com/
MIT License
2.87k stars 709 forks source link

Bower install of specific tagged version #47

Closed meconlin closed 10 years ago

meconlin commented 10 years ago

I am having troubling using bower to install a specific tagged version.

When I attempt to install 1.1.0-beta.14 (which is angular 1.2.16). I end up with 1.1.0-beta.19 (which needs angular 1.2.17) causing me conflicts.

Why does bower fetch beta.19?

Some output from my install command

$ node_modules/bower/bin/bower install mobile-angular-ui#1.1.0-beta.14
bower mobile-angular-ui#1.1.0-beta.14       not-cached git://github.com/mcasimir/mobile-angular-ui.git#1.1.0-beta.14
bower mobile-angular-ui#1.1.0-beta.14          resolve git://github.com/mcasimir/mobile-angular-ui.git#1.1.0-beta.14
bower mobile-angular-ui#~1.1.0              not-cached git://github.com/mcasimir/mobile-angular-ui.git#~1.1.0
bower mobile-angular-ui#~1.1.0                 resolve git://github.com/mcasimir/mobile-angular-ui.git#~1.1.0
bower mobile-angular-ui#1.1.0-beta.14         download https://github.com/mcasimir/mobile-angular-ui/archive/1.1.0-beta.14.tar.gz
bower mobile-angular-ui#~1.1.0                download https://github.com/mcasimir/mobile-angular-ui/archive/1.1.0-beta.19.tar.gz

List cached to see what it downloaded:

node_modules/bower/bin/bower cache list
angular=git://github.com/angular/bower-angular.git#1.2.17-build.162+sha.5319621
angular-route=git://github.com/angular/bower-angular-route.git#1.2.16
angular-toggle-switch=git://github.com/cgarvis/angular-toggle-switch.git#0.3.0
angular-touch=git://github.com/angular/bower-angular-touch.git#1.2.16
bootstrap=git://github.com/twbs/bootstrap.git#3.0.3
fastclick=git://github.com/ftlabs/fastclick.git#1.0.1
font-awesome=git://github.com/FortAwesome/Font-Awesome.git#4.0.3
iscroll=git://github.com/cubiq/iscroll.git#5.1.1
jquery=git://github.com/jquery/jquery.git#2.1.1
mobile-angular-ui=git://github.com/mcasimir/mobile-angular-ui.git#1.1.0-beta.14
mobile-angular-ui=git://github.com/mcasimir/mobile-angular-ui.git#1.1.0-beta.19
overthrow=git://github.com/filamentgroup/Overthrow.git#0.7.0
mcasimir commented 10 years ago

Ok I think I could relax this dependency since it would work with any version of Angular 1.2+. Moreover I've included some dependency that are used only in demo and that could potentially cause conflicts, so I could drop them at all and link from their cdns.

Anyway I don't know why bower would fetch beta.19 despite of what you setup in your bower.json.

I'm going to release beta.20 with a looser dependency on Angular 1.2, and i strongly advice you to use it in place of beta.14 because it has a lot of changes/fixes since beta.14 and is more close to a first release candidate. See CHANGELOG.

mcasimir commented 10 years ago

Thinking it twice.. I can drop the whole angular.js dependency since it does not take part in building process.

Thank You