Home > Backend Development > Golang > 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?

藏色散人
Release: 2021-11-29 15:01:44
forward
1593 people have browsed it

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
Copy after login

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/
Copy after login

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template