Skip to content
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

[Bug] GitVersion tool doesn't generate any output #2260

Closed
nZeus opened this issue May 7, 2020 · 14 comments
Closed

[Bug] GitVersion tool doesn't generate any output #2260

nZeus opened this issue May 7, 2020 · 14 comments

Comments

@nZeus
Copy link

nZeus commented May 7, 2020

Describe the bug
dotnet tool run dotnet-gitversion /verbosity Diagnostic command doesn't produce any output.

Expected Behavior

It should produce a json output

Actual Behavior

Does nothing. No errors, no output

Steps to Reproduce

You can reproduce it here:
https://labs.play-with-docker.com/p/bqq0t0qosm4g0090ih90#bqq0t0qo_bqq0t2iosm4g0090iha0

docker pull mcr.microsoft.com/dotnet/core/sdk:3.1
docker run -i -t mcr.microsoft.com/dotnet/core/sdk:3.1

mkdir x
cd x

dotnet new tool-manifest
dotnet tool install --local GitVersion.Tool --version 5.3.2

git init
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add .config/dotnet-tools.json
git commit -m "First"

dotnet tool run dotnet-gitversion /verbosity Diagnostic

Your Environment

Docker image dotnet/core/sdk:3.1

  • Version Used:
  • Operating System and version: Debian 10
@asbjornu
Copy link
Member

asbjornu commented May 8, 2020

I'm unable to reproduce on macOS, so this may be a Debian-related issue. I believe Debian isn't fully supported, due to LibGit2Sharp not fully supporting it. Are you up to date on the details there, @arturcic?

@arturcic
Copy link
Member

arturcic commented May 8, 2020

libgit2/libgit2sharp#1725 - the Debian 10 is not supported by LibGit2Sharp,

@nZeus
Copy link
Author

nZeus commented May 8, 2020

Indeed, I tried mcr.microsoft.com/dotnet/core/sdk:3.1-alpine and it works.

Is it possible to throw an exception (e.g. System not supported, or a libgit2sharp exception)?
So that users aware of why the output is empty?

@asbjornu
Copy link
Member

asbjornu commented Jun 2, 2020

It would be great to do something like that, @nZeus. But it sounds like a PITA to maintain a list of supported operating systems for another software project. If LibGit2Sharp had a list we could use, this would be no problem. But unfortunately they don't afaik.

@mabead
Copy link

mabead commented Jun 2, 2020

@asbjornu I understand that it would be a PITA to maintain a perfect list but maintaining a list that contains the OS that you know will fail could save a lot of times to others.

As said in #2308, we spend about two days (total) trying to find out what was going wrong. We were migrating all our code and build to .net core 3.1 when we had this problem. Narrowing down the error took us a lot of time.

@asbjornu
Copy link
Member

asbjornu commented Jun 2, 2020

Sure, I wouldn't mind having a blacklist of known unsupported operating systems. If anyone submits a pull request implementing it, I would merge it.

@DarwinJS
Copy link
Contributor

It is also happening in the container - /verbosity is ignored.

@Alex2357
Copy link

Same with me /verbosity Diagnostic doesn't work and this is critical to figure out how things do work. Please fix this asap to avoid raising new issues.

@nbarnwell
Copy link

nbarnwell commented Mar 3, 2023

I thought it was just me. The only affect /verbosity diagnostic has for me is to prevent the /diag switch having any effect. This is on Windows using dotnet-gitversion so perhaps it's unrelated?

@phitattoo
Copy link

phitattoo commented Mar 3, 2023

• ดูและแก้ไขเอกสารนี้ได้ในโปรแกรม Word ในคอมพิวเตอร์ แท็บเล็ต หรือโทรศัพท์ของคุณ
• คุณสามารถแก้ไขข้อความโดยแทรกเนื้อหา เช่น รูปภาพ รูปร่าง และตารางได้อย่างง่ายดาย แล้วบันทึกเอกสารไว้ใน Cloud ได้อย่างราบรื่นจากโปรแกรม Word บนอุปกรณ์ที่ใช้ระบบปฏิบัติการ Windows, Mac, Android หรือ iOS ของคุณ

1 similar comment
@phitattoo
Copy link

• ดูและแก้ไขเอกสารนี้ได้ในโปรแกรม Word ในคอมพิวเตอร์ แท็บเล็ต หรือโทรศัพท์ของคุณ
• คุณสามารถแก้ไขข้อความโดยแทรกเนื้อหา เช่น รูปภาพ รูปร่าง และตารางได้อย่างง่ายดาย แล้วบันทึกเอกสารไว้ใน Cloud ได้อย่างราบรื่นจากโปรแกรม Word บนอุปกรณ์ที่ใช้ระบบปฏิบัติการ Windows, Mac, Android หรือ iOS ของคุณ

@phitattoo
Copy link

I thought it was just me. The only affect /verbosity diagnostic has for me is to prevent the /diag switch having any effect. This is on Windows using dotnet-gitversion so perhaps it's unrelated?

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jul 2, 2023

This issue was closed because it has been stalled for 30 days with no activity. Thank you for your contributions

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants