-
Notifications
You must be signed in to change notification settings - Fork 344
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
GitVersion ubuntu #944
Comments
I don't see an issue here. More likely a configuration issue with GitVersion. Try to get the output of the invocation. |
10:04:23 [WRN] Configuration files for GitHubActions (run_tests_transaction) have changed.
|
? |
@eaba did you get this issue resolved? |
Yes. |
The very same issue happens on Bitbucket as well.
|
Usage Information
GitVersion
Description
14:24:19 [INF] > /home/runner/.dotnet/dotnet/home/runner/.nuget/packages/gitversion.tool/5.10.3/tools/net6.0/any/gitversion.dll /nocache
Warning: Could not inject value for "Build.GitVersion"
14:24:20 [WRN] Could not inject value for Build.GitVersion
Nuke.Common.Tooling.ProcessException: Process 'dotnet' exited with code 1.
Reproduction Steps
jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.*
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.*
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('/global.json', '/*.csproj') }}
- name: Run './build.cmd Test'
run: ./build.cmd Test
Expected Behavior
no
Actual Behavior
Target Compile => _ => _
.DependsOn(Restore)
.Executes(() =>
{
var vers = GitVersion.MajorMinorPatch;
DotNetBuild(s => s
.SetProjectFile(Solution)
.SetNoRestore(InvokedTargets.Contains(Restore))
.SetConfiguration(Configuration)
//.SetAssemblyVersion(vers)
.SetFileVersion(vers)
.SetVersion(GitVersion.SemVer));
});
Regression?
No response
Known Workarounds
No response
The text was updated successfully, but these errors were encountered: