Skip to content

Commit

Permalink
Duplicate productVersion.txt with repo-specific name (#48018) (#48194)
Browse files Browse the repository at this point in the history
In our efforts to unify the build access story using aka.ms links, we have found that there are certain files that share the same name in multiple different repositories, most importantly, productVersion.txt. As part of the work to move to aka.ms links, we will be flattening the short link paths, so rather than having a runtime-specific, aspnetcore-specific, etc. full path to the files generated by each of the repos, they will all go to the same short link location. This means that the path to productVersion.txt will collide in the aka.ms links (the backing locations are not changing and will be unaffected). To combat this, we will add a duplicate of each of the product repos productVersion.txt, renamed to indicate which product repo it came from, in this case runtime-productVersion.txt. The original will remane so that we do not break existing scenarios that do not use the aka.ms links.
  • Loading branch information
michellemcdaniel committed Feb 16, 2021
1 parent 5111aa1 commit 8e8a367
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/installer/publish/prepare-artifacts.proj
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
Lines="$(ProductVersionTxtContents)"
Overwrite="true"
Encoding="ASCII" />

<!-- Generate runtime-productVersion.txt containing the value of $(PackageVersion) -->
<WriteLinesToFile
File="$(ArtifactsShippingPackagesDir)runtime-productVersion.txt"
Lines="$(ProductVersionTxtContents)"
Overwrite="true"
Encoding="ASCII" />

<ItemGroup>
<ItemsToPush Remove="@(ItemsToPush)" />
Expand All @@ -112,6 +119,11 @@
<PublishFlatContainer>true</PublishFlatContainer>
</ItemsToPush>

<ItemsToPush Include="$(ArtifactsShippingPackagesDir)runtime-productVersion.txt">
<RelativeBlobPath>$(InstallersRelativePath)runtime-productVersion.txt</RelativeBlobPath>
<PublishFlatContainer>true</PublishFlatContainer>
</ItemsToPush>

</ItemGroup>

<!-- Push items to AzDO as build artifacts, generating the asset manifest as a side effect. -->
Expand Down

0 comments on commit 8e8a367

Please sign in to comment.