Skip to content
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

Introduce bower.lock file #1120

Closed
bazo opened this issue Feb 15, 2014 · 1 comment
Closed

Introduce bower.lock file #1120

bazo opened this issue Feb 15, 2014 · 1 comment

Comments

@bazo
Copy link

bazo commented Feb 15, 2014

Please introduce a sort of bower.lock file just like composer has its composer.lock file that would ensure that running bower install installs the precise versions listed in this file

Why?

this is my bower file

{
    "name": "app",
    "dependencies": {
        "jquery": "*"
        }
}

I use bower as a part of my deployment process where bower install is run on the server at deply time

what happenned is that on localhost jquery installed from components/jquery but on the server it installed from jquery/jquery

so i deployed my app, and it didn't work because the files structure was different.

so then i changed my bower.json to look like this

{
    "name": "app",
    "dependencies": {
        "jquery": "https://github.com/jquery/jquery"
        }
}

and thought that bower update will install the same package on my localhost. but no

i had to bower cache clean on both machines, wipe bower components folder and reinstall again

what i fail to comprehend is how can the same identifier resolve to different repos

another thing is before every deploy i have to run bower update to check if newer versions don't break anything when they're pulled in at deploy

a lock file would ensure that the correct versions are installed every time

@sindresorhus
Copy link
Contributor

Duplicate of #505

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

No branches or pull requests

2 participants