Skip to content

Commit 8e8a367

Browse files
Duplicate productVersion.txt with repo-specific name (#48018) (#48194)
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.
1 parent 5111aa1 commit 8e8a367

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/installer/publish/prepare-artifacts.proj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
Lines="$(ProductVersionTxtContents)"
8787
Overwrite="true"
8888
Encoding="ASCII" />
89+
90+
<!-- Generate runtime-productVersion.txt containing the value of $(PackageVersion) -->
91+
<WriteLinesToFile
92+
File="$(ArtifactsShippingPackagesDir)runtime-productVersion.txt"
93+
Lines="$(ProductVersionTxtContents)"
94+
Overwrite="true"
95+
Encoding="ASCII" />
8996

9097
<ItemGroup>
9198
<ItemsToPush Remove="@(ItemsToPush)" />
@@ -112,6 +119,11 @@
112119
<PublishFlatContainer>true</PublishFlatContainer>
113120
</ItemsToPush>
114121

122+
<ItemsToPush Include="$(ArtifactsShippingPackagesDir)runtime-productVersion.txt">
123+
<RelativeBlobPath>$(InstallersRelativePath)runtime-productVersion.txt</RelativeBlobPath>
124+
<PublishFlatContainer>true</PublishFlatContainer>
125+
</ItemsToPush>
126+
115127
</ItemGroup>
116128

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

0 commit comments

Comments
 (0)