New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Repository Url (tested:gitlab) Unexpected behavior #278
Comments
I'm not sure I understand the issue. Can you share the sections of the repository configuration that specify the remotes? Do you specify |
Repository URL is setting of project.(VS ui and .csproj) Domain1=gitlab.com +aliases in. Ssh config Did I answer your question? |
You shouldn't need to set RepositoryUrl property in the project. It's automatically initialized from the origin remote URL by SourceLink if you set PublishRepositoryUrl. RepositoryUrl also has nothing to do with the URL in the generated SourceLink.json file. It's only used for NuGet packages. Source Link currently doesn't resolve aliases in ssh config. It uses the remote URL specified in git config as is. |
In general, everything is clear. For discussion.
|
It is most likely possible to do separate tasks. In the process... |
Hi!
Domain1=gitlab.com
1.
Repository Url= https://domain1/....
Origin repo url = git@domain2
Got error - SourceControlInformationIsNotAvailableGeneratedSourceLinkEmpty
Ideally, I want to see that there is no mapping for a specific host.
or get https://domain1/ and see url in output
Repository Url=
Origin repo url = git@domain2
Got source link https://domain2/
Ideally, I want to see that there is no mapping for a specific host.
Ideally, I want to see url in output
p.s.
I use separate hosts aliases for different repositories to set keys in .ssh / config (+ vs + git)
Or is there a more elegant way?
What do you think about it?
The text was updated successfully, but these errors were encountered: