Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

I am using go 1.20.1 , Windows 10 x64, GoLand 2022.3.2 .

Go to ... , create file .netrc with content

machine gitlab.com login my_username password my_password

Set environment variable

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

then get dependency

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

Error

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

How to fix it?

>Solution :

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

Second use go get gitlab.com/foo/bar, not foo/bar/baa/fu.
As in go get gitlab.com/name_or_group/repo_name.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading