Home  >  Article  >  Backend Development  >  What should I do if an error occurs when pulling an extension through go get?

What should I do if an error occurs when pulling an extension through go get?

藏色散人
藏色散人forward
2021-11-29 15:01:441588browse

This article is written by the go language tutorial column to introduce to you the solution to the go get pull extension error report. I hope it will be helpful to friends in need!

Error message

If your project is on codeup and the project is configured with ssh pull, you want to pull it through go get for your project Sometimes the package will be pulled through https. At this time, you will be prompted that your username and password cannot be read because you have not configured it

could not read Username

Solution

1. Enter the account password

2. Change https to ssh

codeup as an example

git config --global url."git@codeup.aliyun.com:".insteadOf https://codeup.aliyun.com/

Replacement details

What should I do if an error occurs when pulling an extension through go get?

What should I do if an error occurs when pulling an extension through go get?#                                      

The above is the detailed content of What should I do if an error occurs when pulling an extension through go get?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete