Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/pkgsite: Mess with duplicated module on pkg.go.dev #47126

Closed
nshmyrev opened this issue Jul 11, 2021 · 4 comments
Closed

x/pkgsite: Mess with duplicated module on pkg.go.dev #47126

nshmyrev opened this issue Jul 11, 2021 · 4 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite

Comments

@nshmyrev
Copy link

What version of Go are you using (go version)?

go version go1.16.5 linux/amd64

Does this issue reproduce with the latest release?

Seems so

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/shmyrev/.cache/go-build"
GOENV="/home/shmyrev/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/shmyrev/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/shmyrev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/shmyrev/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/shmyrev/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.5"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2629611323=/tmp/go-build -gno-record-gcc-switches"

What did you do?

It seems I accidentally created two modules:

https://pkg.go.dev/github.com/alphacep/vosk-api/go

and

https://pkg.go.dev/github.com/alphacep/vosk-api

Now, they block each other from updates.

What did you expect to see?

What did you see instead?

  1. I have a tag v0.3.34 in my repo, this tag has no effect on the https://pkg.go.dev/github.com/alphacep/vosk-api/go
    module

  2. I have commit v0.0.0-20210711135442-915dcab59706 but the site still thinks that earlier commit
    v0.0.0-20210711092632-d82052b16804 is the latest one and doesn't update the description doc

  3. Wierd things happen when I try to retrieve the package:

go get github.com/alphacep/vosk-api/go@v0.3.34
go get: module github.com/alphacep/vosk-api@v0.3.34 found, but does not contain package github.com/alphacep/vosk-api/go

Any idea how to fix this all?

Thank you!

@seankhliao seankhliao changed the title Mess with duplicated module on pkg.go.dev x/pkgsite: Mess with duplicated module on pkg.go.dev Jul 11, 2021
@gopherbot gopherbot added this to the Unreleased milestone Jul 11, 2021
@jamalc jamalc added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jul 12, 2021
@jamalc jamalc modified the milestones: Unreleased, pkgsite/unplanned Jul 12, 2021
@jamalc
Copy link

jamalc commented Jul 12, 2021

You must prefix the version number part of the tag with the name of the subdirectory that is the module root. The v0.3.34 tag only applies to the module github.com/alphacep/vosk-api. The version tag for github.com/alphacep/vosk-api/go would be go/v0.3.34.

See the doc on managing module source for more information.

@jamalc jamalc closed this as completed Jul 12, 2021
@nshmyrev
Copy link
Author

@jamalc Thank you. Is it possible to delete https://pkg.go.dev/github.com/alphacep/vosk-api module?

@jamalc
Copy link

jamalc commented Jul 12, 2021

We can remove that module from pkg.go.dev but it will remain on the proxy. If all tags for github.com/alphacep/vosk-api were published to the go proxy in error consider retracting the github.com/alphacep/vosk-api tags so . Here are the docs on the retract directive.

/cc @julieqiu @jba if there is anything you would add here.

@nshmyrev
Copy link
Author

Ok, I'll retract tags. Many thanks! Looks good for now.

go/v0.3.34 works perfectly!

@golang golang locked and limited conversation to collaborators Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

3 participants