gohack icon indicating copy to clipboard operation
gohack copied to clipboard

add flag to avoid version reset

Open rogpeppe opened this issue 7 years ago • 2 comments

When we've previously checked out a version of a dependency in a gohack module dir and we want to keep that version instead of switching to the version specified in the go.mod file, it would be nice to have a flag to do that instead of running gohack and then switching back.

rogpeppe avatar Aug 21 '18 17:08 rogpeppe

How about creating a new command?

$> gohack commit or gohack commit --all
$> gohack commit <specific_package>

corona10 avatar Oct 07 '18 13:10 corona10

What would you expect that commit command to do?

rogpeppe avatar Oct 07 '18 17:10 rogpeppe