Skip to content

[ISSUE]: Release 4.0.0 - Cannot parse local nuget sources #1685

@vdevc

Description

@vdevc

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitHub Actions

What are you seeing?

I am trying to upgrade to release 4.0.0 of the action however I am encountering a blocking problem. this is a simple extract of my action

- name: Create artifacts directory
  run: |
    mkdir -p ./artifacts/packages
- name: Install GitVersion
  uses: gittools/actions/gitversion/setup@v4.0.0
    with:
      versionSpec: '6.x'

in the root path I have a nuget.config file which contains the following

<packageSources>
    <add key="Nuget" value="https://api.nuget.org/v3/index.json" />
    <add key="LocalPackages" value="./artifacts/packages" />
    <add key="MyPrivateSource" value="https://nuget.pkg.github.com/MyPrivateOrg/index.json" />
</packageSources>

and this is the output of the step

Run gittools/actions/gitversion/setup@v4.0.0
Running on: 'GitHub Actions'
Disable Telemetry
--------------------------
Acquiring GitVersion.Tool for version spec: 
--------------------------
Querying tool versions for GitVersion.Tool 
Command: dotnet nuget list source --format short
Error: Failed to parse URL from /home/runner/work/MyPrivateOrg/MyPrivateRepo/artifacts/packages
Error: Failed to parse URL from /home/runner/work/MyPrivateOrg/MyPrivateRepo/artifacts/packages

Also tried to set ignoreFailedSource: true but this does not work either

What is expected?

Install the GitVersion tool without any error

Steps to Reproduce

The steps described are good to reproduce. Before upgrading I was working with version 5.x of the spec and it was working very nice.

Output log or link to your CI build (if appropriate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions