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

go mod support is not working #24

Open
bhupeshkothari opened this issue Mar 30, 2021 · 2 comments
Open

go mod support is not working #24

bhupeshkothari opened this issue Mar 30, 2021 · 2 comments

Comments

@bhupeshkothari
Copy link

Example file to illustrate:

`package main

import _ "github.com/Azure/sonic-telemetry"

func main() {}
`

root@c08af7e38ab7:/tmp/foo# go mod init example
go: creating new go.mod: module example

root@c08af7e38ab7:/tmp/foo# go mod tidy
go: finding module for package github.com/Azure/sonic-telemetry
example imports
github.com/Azure/sonic-telemetry: no matching versions for query "latest"

There is also the following line in top level go.mod under sonic-telemetry:
replace github.com/Azure/sonic-mgmt-common => ../sonic-mgmt-common

How is go mod expected to work?

@bhupeshkothari
Copy link
Author

bhupeshkothari commented Apr 22, 2021

Any update? Now error is:
root@34d6067e4f5c:/tmp# go get -u github.com/Azure/sonic-telemetry/telemetry
go get github.com/Azure/sonic-telemetry/telemetry: no matching versions for query "upgrade"

go env:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.3"
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 -fmessa

@ganglyu ganglyu transferred this issue from sonic-net/sonic-telemetry Aug 31, 2022
@sneelam20
Copy link
Contributor

Is this issue still relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants