Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

Lock file? #120

Closed bassrock closed 9 years ago

bassrock commented 9 years ago

Currently it seems like sp:bower:update and sp:bower:install perform the same as there is no lock file that I can see in the structure for it to follow. I recommend we introduce lock file support so that this behaves as expected like composer or a regular bower install.

Spea commented 9 years ago

Actually both commands just execute bower update and bower install. When I execute sp:bower:install twice, the second one does not do anything at all. I guess it has something to do with your configuration, would be nice if you could provide some information about that.

bassrock commented 9 years ago

@Spea does a bower.lock get put anywhere? I have my .gitignore setup to ignore everything in the public/components directory with the bower.json file inside the Resources/config/bower directory.

screen shot 2015-01-13 at 10 54 35 am

Spea commented 9 years ago

Currently there is no such thing as a bower.lock file. There are some discussion on the bower project to implement it, but right now there is no such thing. So I'm still not sure what problem you have.

Wirone commented 9 years ago

He has a problem with assumption that lock file should exist :-) For Composer users it's obvious, for me was too, then I read this.

If you want to keep version consistency through do not use ~ on dependencies, but set exact version.