You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
This is a real problem, https://github.com/mitchellh/golicense depends on https://gopkg.in/src-d/go-license-detector.v2 which uses gopkg.in/src-d/go-git.v4 v4.1.0, which is before this breaking change was made. So a user cannot simultaneously use github.com/mitchellh/golicense and gopkg.in/src-d/go-git.v4 latest even though SemVer (and by extension, go modules) promises compatibility.
My recommendation would be to revert the signature to include the error, even though it will always be nil. That way we'll be able to tell users to update to latest and it will remain compatible with previous releases, except for 4.7.1-4.13.1.
The text was updated successfully, but these errors were encountered:
go-license-detector v2 was depending on an old version of
gopkg.in/src-d/go-git, and unfortunately the latest version
broke compatibility unexpectedly. This made golicense
unnecessarily difficult to build in repositories which otherwise
used gopkg.in/src-d/go-git. Upgrading to v3 removes these problems.
See src-d/go-git#1262 for full context.
It also allows us to remove a whole lot of packages from go.mod
in general.
go-license-detector v2 was depending on an old version of
gopkg.in/src-d/go-git, and unfortunately the latest version
broke compatibility unexpectedly. This made golicense
unnecessarily difficult to build in repositories which otherwise
used gopkg.in/src-d/go-git. Upgrading to v3 removes these problems.
See src-d/go-git#1262 for full context.
It also allows us to remove a whole lot of packages from go.mod
in general.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Specifically, this change 8f6b312#diff-8dd110426eb72706e38f9798b9a95230R37, which removed the error return from these functions, merged with #949.
This is a real problem, https://github.com/mitchellh/golicense depends on https://gopkg.in/src-d/go-license-detector.v2 which uses
gopkg.in/src-d/go-git.v4 v4.1.0
, which is before this breaking change was made. So a user cannot simultaneously usegithub.com/mitchellh/golicense
andgopkg.in/src-d/go-git.v4 latest
even though SemVer (and by extension, go modules) promises compatibility.My recommendation would be to revert the signature to include the error, even though it will always be nil. That way we'll be able to tell users to update to latest and it will remain compatible with previous releases, except for
4.7.1
-4.13.1
.The text was updated successfully, but these errors were encountered: