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

On "update", bower re-downloads git repository even if there are no changes #2420

Closed
stevevanhooser opened this issue Jan 15, 2017 · 2 comments

Comments

@stevevanhooser
Copy link

Hello -

I'm not sure if this is user error or a bug, but whenever I install a package that refers to a git repo, and then run bower update, the package is downloaded again even if there is no new version. I have been unable to uncover anything on the web by searching.

Example:

bower install vhlab_mltbx_toolbox

bower update vhlab_mltbx_toolbox

(bower appears to re-download and re-install, even though there have been no changes to the repo.)

BUG REPORT

Output of bower -v && npm -v && node -v:

1.8.0
3.10.10
v6.9.4

Additional environment details (proxy, private registry, etc.):

Steps to reproduce the issue:

1.bower install vhlab_mltbx_toolbox
2.bower update vhlab_mltbx_toolbox

Describe the results you received:

Upon running update, Bower reinstalls the git repo

Describe the results you expected:

I expected that Bower would examine the repo and report "up-to-date" or "no action needed" or something similar:

bash-3.2$ bower install vhlab_mltbx_toolbox
bower not-cached https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#*
bower resolve https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#*
bower download https://github.com/VH-Lab/vhlab_mltbx_toolbox/archive/master.tar.gz
bower extract vhlab_mltbx_toolbox#* archive.tar.gz
bower resolved https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#a208203249
bower install vhlab_mltbx_toolbox#a208203249

vhlab_mltbx_toolbox#a208203249 bower_components/vhlab_mltbx_toolbox
bash-3.2$ bower update vhlab_mltbx_toolbox
bower not-cached https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#*
bower resolve https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#*
bower download https://github.com/VH-Lab/vhlab_mltbx_toolbox/archive/master.tar.gz
bower extract vhlab_mltbx_toolbox#* archive.tar.gz
bower resolved https://github.com/VH-Lab/vhlab_mltbx_toolbox.git#a208203249

Additional information:

@juanbzpy
Copy link
Member

juanbzpy commented Mar 1, 2017

maybe related to #256

@sheerun
Copy link
Contributor

sheerun commented Apr 26, 2020

Closing for the same reason as #256

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

No branches or pull requests

3 participants