$ glide get "github.com/sirupsen/logrus"
Because the package github.com/sirupsen/logrus has imported the golang office package golang.org/x/crypto,
which has been moved to github anymore
When updating the project ‘s dependence packages, it always notice that the crypto package cannot been found then interrupted update
The old way is to download the package below the $GOPATH directory,
then running update to skip this package
$ mkdir -p $GOPATH/src/golang.org/x/
This method is quiet convenient, but each deployment of a server, the workload will increase, so there is a new way.
- Fork the project github.com/sirupsen/logrus to my own github, update the github repo address in my project
- Replace the github repo in project glide config file
- Update the dependency package glide up
But in the process of updating ,package golang.org/x/crypto still be prompted to import in a new git warehouse
In order to exclude the influence of other third party packages, so I created a new project
$ cd $GOPATH/src/
After check the code in the new repository, I found the code does not been modify !!
But git clone this new warehouse, the code is indeed modified, why is this??
ok,we changed the glide configuration file
- package: github.com/sirupsen/logrus
Then the glide will download the package basing on the repo actual address