Skip to content

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

Closed as not planned
Closed as not planned

Description

@nZeus

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

Activity

  1. asbjornu commented on May 8, 2020

    @asbjornu
    Member

    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?

  2. arturcic commented on May 8, 2020

    @arturcic
    Member

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

  3. nZeus commented on May 8, 2020

    @nZeus
    Author

    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?

  4. asbjornu commented on Jun 2, 2020

    @asbjornu
    Member

    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.

  5. mabead commented on Jun 2, 2020

    @mabead

    @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.

  6. asbjornu commented on Jun 2, 2020

    @asbjornu
    Member

    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.

  7. added a commit that references this issue on Nov 14, 2020
  8. DarwinJS commented on Jun 26, 2021

    @DarwinJS
    Contributor

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

  9. Alex2357 commented on Feb 23, 2023

    @Alex2357

    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.

  10. nbarnwell commented on Mar 3, 2023

    @nbarnwell

    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?

  11. phitattoo commented on Mar 3, 2023

    @phitattoo

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

  12. phitattoo commented on Mar 3, 2023

    @phitattoo

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

  13. phitattoo commented on Mar 3, 2023

    @phitattoo

    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?

  14. github-actions commented on Jun 2, 2023

    @github-actions

    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.

  15. github-actions commented on Jul 2, 2023

    @github-actions

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions