gohack icon indicating copy to clipboard operation
gohack copied to clipboard

Make temporary edits to your Go module dependencies

Results 27 gohack issues
Sort by recently updated
recently updated
newest added

Would it be reasonable for `gohack` to support adding a module to a workspace (if a `go.work` file is present) rather than adding a replace to the `go.mod` file?

This is a test PR to exercise ci.

This is how we can reproduce the issue: ``` $ git clone https://github.com/rogpeppe/go-internal.git $ gohack get gopkg.in/errgo.v2 $ gohack undo $ git status On branch master Your branch is up...

``` -*- mode: compilation; default-directory: "~/go/pkg/mod/github.com/stapelberg/[email protected]/" -*- Compilation started at Fri May 29 21:53:41 goversion -m $(which gohack) && gohack get /home/michael/go/bin/gohack go1.14 path github.com/rogpeppe/gohack mod github.com/rogpeppe/gohack v1.0.2 dep github.com/rogpeppe/go-internal...

When doing undo in the folder ``, gohack should save what was undone to the file `$HOME/gohack/` or to the file `.gohack-redo`. Command `gohack redo` should undo the undoing, so...

I'm happy to leave off the last commit if you prefer. I really only meant to send the first commit, but kept noticing stuff. :)

``` $ gohack get -vcs github.com/rogpeppe/go-internal/modfile module "github.com/rogpeppe/go-internal/modfile" does not appear to be in use all modules failed; not replacing anything ``` The module is `github.com/rogpeppe/go-internal`. But the intent of...

Many package paths are long. To ease typing, I suggest either/both of: * add `gohack list`, which will emit all package paths in the module, for easy copy/paste * add...