Home > Backend Development > Golang > Go to remote: The item you are looking for cannot be found or you do not have permission to view it

Go to remote: The item you are looking for cannot be found or you do not have permission to view it

王林
Release: 2024-02-10 22:20:10
forward
971 people have browsed it

Go to remote: The item you are looking for cannot be found or you do not have permission to view it

php editor Zimo reminds you that when you encounter the error message "The item you are looking for cannot be found or you do not have permission to view it" when accessing a project remotely, you may It is caused by the following reasons: 1. The project does not exist or has been deleted; 2. Insufficient access rights. To resolve this issue, you can check that the project exists and that the path is correct, making sure you have sufficient permissions to access the project. If the problem persists, contact your system administrator or technical support for further assistance.

Question content

I am using go 1.20.1, windows 10 x64, goland 2022.3.2.

Go to ... and create a file with the contents .netrc

machine gitlab.com login my_username password my_password
Copy after login

Set environment variables

Then get the dependencies

go get gitlab.com/foo/bar/baa/fuu
Copy after login

mistake

remote: The project you were looking for could not be found or you don't have permission to view it.
Copy after login

How to solve?

Workaround

First, make sure to use the PAT (Personal Access Token) a>, not your actual GitLab account password, located in %USERPROFILE%\_netrc middle.

The second time using go gets gitlab.com/foo/bar instead of foo/bar/baa/fu.
For example, go gets gitlab.com/name_or_group/repo_name.

The above is the detailed content of Go to remote: The item you are looking for cannot be found or you do not have permission to view it. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.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