Home  >  Article  >  Backend Development  >  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

王林
王林forward
2024-02-10 22:20:10889browse

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

Set environment variables

Then get the dependencies

go get gitlab.com/foo/bar/baa/fuu

mistake

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

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!

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