question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using private repository on self Hosted gitlab instance

See original GitHub issue

Hi,

I’m currently migrating my process from gitlink because now I need to use portable PDB.

So I have my own gitlab instance and all of my repos need authorization for reading it.

In my csproj in tried to add:

<PackageReference Include="Microsoft.SourceLink.GitLab" Version="1.0.0-beta-63102-01" PrivateAssets="All" />
<SourceLinkGitLabHosts Include="gitlab.my-domain.com" />

But there is a way to pass a gitlab read access token ?

Thanks in advance for your help

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
mhofmann85commented, Feb 28, 2020

Hi,

I recently had the a similar usecase with a C+±Project. I’m currently migrating from subversion to GitLab and I want to Debug Dumps from an execution if they crash in the field. Getting the correct pdb-files is done manually, this can be done with a symbol-server later. Never the less, if I’m debugging an exception, I want to have the correct source file from GitLab.

I Used the CMake scripts to generate a source-link.json file. I Simply rewrote the url to point to the /raw/ URL of Gitlab.

Everything works so far, except the authentification. Sourcelink would allways download the login-page as my final .cpp file. My solution so far is, to generate an session cookie for Gitlab in Visual Studio 2019. This can be done by logging in to gitlab via the internal web browser: View -> Other Windows -> Web browser.

This is maybe not the perfect solution, but in my usecase, it’s still simpler than implementing some reverse proxy via localhost or anything desribed above. And, if Visual studio implements the missing feature, the “old” releases will still work, but without the manual login.

A Final small remark. If the credentials where wrong it is possible that the wrong file is cached, therefore check the C:\Users\youruser\AppData\Local\SourceServer for wrong files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import a project from GitLab.com to your self-managed ...
To import GitLab projects from GitLab.com to a self-managed GitLab instance use migrating groups and projects by direct transfer.
Read more >
Connecting a self-hosted GitLab repository as your source
Go to Settings / Self Hosted GitLab; Enter the details for your self-hosted instance of GitLab; Click Configure Self Hosted GitLab. Self hosted...
Read more >
How to configure private repository on Self Hosted Gitlab ...
Hi,. I am trying to setup Bitrise with a private repository on a self hosted gitlab where SSH port is disabled. (Sadly, I...
Read more >
Your Private CI/CD using self-hosted GitLab and Docker
In this post, we are going to guide ourselves through the initial setup of GitLab using Docker. We will be using Docker inside...
Read more >
Private Composer Repositories with GitLab
With a private Composer repository, you can create a collection of PHP Composer packages, and have Composer download them from GitLab package  ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found