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.

Update to GitVersion 2.5.x does not work

See original GitHub issue

I am not sure whether to report here or to https://github.com/GitTools/GitVersion.

I try updating GitVersion to 2.5.0 (and 2.5.4; see https://github.com/JabRef/jabref/pull/6147).

After updating, I get that json != json:

Unhandled exception. GitVersion.Exceptions.WarningException: Value 'json' cannot be parsed as output type, please use 'json' or 'buildserver'

My config is not too complex:

assembly-versioning-format: '{major}.{minor}.{WeightedPreReleaseNumber}'
assembly-informational-format: '{major}.{minor}{PreReleaseTagWithDash}--{CommitDate}--{ShortSha}'
mode: ContinuousDeployment

branches:
  master:
    regex: ^master
    tag: ''
    pre-release-weight: 0

Google did not find the exception, so I think, it’s a local issue somehow?

Unhandled exception. GitVersion.Exceptions.WarningException: Value 'json' cannot be parsed as output type, please use 'json' or 'buildserver'
   at GitVersion.ArgumentParser.ParseArguments(String[] commandLineArguments) in D:\a\GitVersion\GitVersion\src\GitVersionExe\ArgumentParser.cs:line 320
   at GitVersion.Program.<>c__DisplayClass1_0.<CreateHostBuilder>b__2(IServiceProvider sp) in D:\a\GitVersion\GitVersion\src\GitVersionExe\Program.cs:line 28
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
...
    at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at GitVersion.Program.Main(String[] args) in D:\a\GitVersion\GitVersion\src\GitVersionExe\Program.cs:line 14
   at GitVersion.Program.<Main>(String[] args)
(node:2823) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function
    at /home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:5:943
    at s.toString (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:5:1005)
    at o (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:5:372)
    at Object.t.issue (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:5:432)
    at c (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:9:741)
    at Object.t.setFailed (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:9:1482)
    at h.setFailed (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:304:1902)
    at Object.<anonymous> (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:332:1542)
    at Generator.throw (<anonymous>)
    at a (/home/runner/work/_actions/gittools/actions/v0.9/dist/github/gitversion/execute/bundle.js:332:221)
(node:2823) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2823) [DEP0018] DeprecationWarn

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kopporcommented, Apr 2, 2020

I took the steps out of README.md:

grafik

I thought that v0.9 was an alias for the v0.9.x (what other extensions also do). Fixed (refs https://github.com/GitTools/actions/pull/82).

Works now.

0reactions
kopporcommented, Apr 2, 2020

OMG, for actions/cache, they fucked it up:

grafik

Refs https://github.com/actions/cache/issues/241

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade git · Issue #10022 · desktop/desktop - GitHub
This issue tracks the investigation to upgrade the version of git that GitHub Desktop is currently using. Current git version As of now ......
Read more >
How to update git version from GitHub Desktop on Windows
I install GitHub for desktop and hoped it ships with the most recent version, however git --version returns git version 1.9.5.github.0 . But...
Read more >
Version Incrementing - GitVersion
Because GitVersion works with several workflows, the way it does its version incrementing may work perfectly for you, or it may cause you...
Read more >
Downloads - Git SCM
Downloads. macOS · Windows · Linux/Unix · Older releases are available and the Git source repository is on GitHub.
Read more >
git version 2.5.0+4 - darktable - pixls.us
I installed the git version back in January. It showed as 2.5.0+4 I reinstalled it today (hoping to get the latest development), but...
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