A117
(Allen)
November 26, 2020, 7:47am
1
My tags do not seem to be recognized at least by golang.
when I use go list command to check my modules, it reports error
>go list -m github.com/bon-ami/eztools@v1.0
go list -m: module github.com/bon-ami/eztools: no matching versions for query "v1.0"
while I can do the same to others’ modules, like
>go list -m github.com/sagikazarmark/modern-go-application@0.3.0
github.com/sagikazarmark/modern-go-application v0.0.0-20191115235526-e229bcc9c747
But I do not see any difference between my tag and the reference project’s. Also wonder whether it is a github issue or golang issue. Thanks a lot.
NobbZ
(Norbert Melzer)
November 26, 2020, 7:52am
2
As far as I understand it, a version is required to follow semantic versioning, which again is specified to use 3 segments. Your tag has only 2.
A117
(Allen)
November 26, 2020, 7:53am
3
I created a new version “1.0”, not “v1.0” and it worked.
but other modules still does not take this version as latest,
module github.com/bon-ami/jirrit
go 1.14
require github.com/bon-ami/eztools v0.0.0-20201120054256-b5ba9c3ab6c5
NobbZ
(Norbert Melzer)
November 26, 2020, 8:13am
4
1.0 still only has 2 segments, have you tried a version with 3 segments?
A117
(Allen)
November 26, 2020, 8:17am
5
1.0.0 works the same
and github.com/kr/binarydist@v0.1.0 has v, yet it works. So there must be something I’m still wrong.
>go list -m github.com/kr/binarydist@v0.1.0
github.com/kr/binarydist v0.1.0
A117
(Allen)
November 27, 2020, 12:20am
6
maybe it was because my connection did not work and I was always using my cache… But github remembers my previous tags even after I removed them using git command and they were no more shown on the web.
remove the repository and recreate one
upload the files
make a tag v0.0.1 on the web
system
(system)
Closed
February 25, 2021, 12:35am
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.