Skip to content

Remove installer's GetLatestCommit target in favor of Arcade infrastructure #48338

Closed

Description

@ViktorHofer

Installer's GetLatestCommit target is used to build the corehost and to publish assets. That custom target should be replaceable by what Arcade already offers (version.targets):

<Target Name="GetLatestCommitHash"
Condition="'$(LatestCommit)' == ''">
<!-- Get the latest commit hash -->
<Exec Command="git rev-parse HEAD 2>&amp;1" StandardOutputImportance="Low" IgnoreExitCode="true" IgnoreStandardErrorWarningFormat="true" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="LatestCommit" />
<Output TaskParameter="ExitCode" PropertyName="LatestCommitExitCode" />
</Exec>
<!-- We shouldn't fail the build if we can't retreive the commit hash, so in this case just set it to N/A -->
<PropertyGroup Condition="'$(LatestCommitExitCode)'!='0'">
<LatestCommit>N/A</LatestCommit>
</PropertyGroup>
</Target>

cc @dotnet/runtime-infrastructure

Activity

  1. ghost added
    untriaged
    on Feb 16, 2021
  2. added this to the 6.0.0 milestone on Feb 16, 2021
  3. removed
    untriaged
    on Feb 17, 2021
  4. added
    help wanted
    on Feb 20, 2021
  5. am11 commented on Feb 21, 2021

    @am11
    Member

    @ViktorHofer, @vitek-karas, regarding the version-like properties in GetProductVersions target, do we have a use-case these days where, e.g. AppHostVersion and HostPolicyVersion have different values during the build of runtime repo (locally or in public/private CI leg, including maintenance branches)? If not, I think we can define one additional property (say DotnetProductVersion) in eng/Versions.props to replace the entire GetProductVersions target (most of the properties in this target are unused anyway; RuntimePackageVersion, RuntimePackageRelease and so on).

  6. ViktorHofer commented on Feb 21, 2021

    @ViktorHofer
    MemberAuthor

    @jkoritzinsky knows more about these properties than me. Also see the discussion in #48341 and #48229

  7. am11 commented on Feb 21, 2021

    @am11
    Member

    Ops, should have used the correct keyword (if memory serves, Addresses used to be one of them but not anymore).

  8. ghost locked as resolved and limited conversation to collaborators on Mar 23, 2021
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

    area-Infrastructure-installerhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions