bingo icon indicating copy to clipboard operation
bingo copied to clipboard

Command for updating all deps at once to latest

Open bwplotka opened this issue 2 years ago • 1 comments

@kishaningithubi mentioned a good feature request in https://github.com/bwplotka/bingo/issues/135#issuecomment-1482136790

would like to have a bingo get -u option similar to go get -u to upgrade all my dependencies using a single command

bwplotka avatar Mar 24 '23 20:03 bwplotka

In the meantime, I use this shell script:

#!/bin/bash

bingo list \
  | sed 1,2d \
  | awk '{print $3}' \
  | sed s/@.\*/@latest/ \
  | xargs -n1 bingo get

This largely works but failed to do the upgrade for oapi-codegen when it moved repositories. Kind of a huge ask, but adding that logic into the tool would help but maybe a new ticket type for folks to note when they had to do an upgrade like this.

Also, as an aside, go get -u plus renovatebot have done a great job of keeping our projects up to date. That script above has done a good job keeping our tooling up to date as well. So thanks for bingo, it's saved a bunch of errors and grunt work.

lyda avatar Nov 30 '24 13:11 lyda