Closed
Description
The import path of this package has changed in PR #30. /cc @sqs
However, the latest released version (v0.5.0) still has the old module path in its go.mod file:
https://github.com/sourcegraph/go-diff/blob/v0.5.0/go.mod#L1
As a result, trying to install the latest version of this package in module mode fails:
$ cd $(mktemp -d)
$ go mod init m
go: creating new go.mod: module m
$ go get github.com/sourcegraph/go-diff/diff
go: finding github.com/sourcegraph/go-diff/diff latest
go: github.com/sourcegraph/go-diff@v0.5.0: parsing go.mod: unexpected module path "sourcegraph.com/sourcegraph/go-diff"
go: error loading module requirements
$ echo $?
1
This can be fixed this by making a new release version (perhaps v0.5.1) that contains the new module path in the go.mod file.
Metadata
Metadata
Assignees
Labels
No labels