Closed generalmimon closed 2 years ago
I noticed this too and was wondering why it happened, though I never tried to find out why. I guess a potential workaround at the moment is to append v2 to the package name (go install github.com/jstemmer/go-junit-report/v2@v2.0.0-beta1
. It sounds like this should resolve itself once I release a stable v2 version?
@jstemmer:
It sounds like this should resolve itself once I release a stable v2 version?
I don't think so. After reading a few articles I assume it has nothing to do with whether it is a pre-release or not.
I'm not familiar with Go modules, but these articles seem relevant:
So if I understand, the source code of the v2
version is supposed to be either in a v2/
directory or on a separate v2
branch?
I assume that the tag in
go.mod
should still bev1
, because the stable@v2
was formally not released yet (Go apparently knows that a-beta1
version is a lower version than the stable one without the-beta
suffix):https://github.com/jstemmer/go-junit-report/blob/d84b41a3f9221d8a17cc886dfa32135baf26e86e/go.mod#L1
Even Go 1.13 (I know, indeed an old version at this point) complains about it: