Using go get using the danet name fails
Description
Using go get code.fbi.h-da.de/danet/gosdn/cmd/gosdn
from the installation section isn't successfull:
go get code.fbi.h-da.de/danet/gosdn/cmd/gosdn
go get: code.fbi.h-da.de/danet/gosdn@none updating to
code.fbi.h-da.de/danet/gosdn@v0.0.2: parsing go.mod:
module declares its path as: code.fbi.h-da.de/cocsn/gosdn
but was required as: code.fbi.h-da.de/danet/gosdn
Using go get code.fbi.h-da.de/cocsn/gosdn/cmd/gosdn
instead works:
go get code.fbi.h-da.de/cocsn/gosdn/cmd/gosdn
go: downloading code.fbi.h-da.de/cocsn/gosdn v0.0.2
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/spf13/cobra v1.1.1
go: downloading github.com/spf13/viper v1.7.1
go: downloading code.fbi.h-da.de/cocsn/yang-models v0.0.4
go: downloading github.com/openconfig/gnmi v0.0.0-20200617225440-d2b4e6a45802
go: downloading github.com/openconfig/goyang v0.2.3
go: downloading github.com/openconfig/ygot v0.10.0
go: downloading google.golang.org/grpc v1.34.0
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/google/uuid v1.1.2
go: downloading github.com/golang/protobuf v1.5.0
go: downloading golang.org/x/net v0.0.0-20201216054612-986b41b23924
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.4
go: downloading github.com/mitchellh/mapstructure v1.3.3
go: downloading github.com/pelletier/go-toml v1.8.1
go: downloading github.com/spf13/afero v1.4.1
go: downloading github.com/spf13/cast v1.3.1
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.62.0
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/neo4j/neo4j-go-driver v1.8.3
go: downloading google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d
go: downloading github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: downloading github.com/google/go-cmp v0.5.5
go: downloading github.com/kylelemons/godebug v1.1.0
go: downloading golang.org/x/text v0.3.4
Expected Behavior
Actual Behavior
Possible Fix
Easiest, temporary fix would be to adjust the installation instructions. However, it would be substantially better to fix the module declaring itself under the old name and finish the migration.
Steps to Reproduce
- Start Terminal with factory settings (git, go, ...)
-
go get code.fbi.h-da.de/danet/gosdn/cmd/gosdn
will fail -
go get code.fbi.h-da.de/cocsn/gosdn/cmd/gosdn
will work
Context
Your Environment
- Version used: go get downloaded version v0.0.2
- Environment name and version (e.g. go v1.16.3 on FreeBSD 13.0-current): go version go1.16.5 linux/amd64
- Server type and version:
- Operating System and version: Fedora, fresh installation; 5.11.12-300.fc34.x86_64