Skip to content

Commit 843b195

Browse files
committed
feat: use json based release manifest
Signed-off-by: Dominik Viererbe <[email protected]>
1 parent 57c2102 commit 843b195

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

eng/build-orig-tarball.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,8 @@ def __init__(self, args: argparse.Namespace, hostDpkgArchitecture: str):
299299
self.ReleaseManifestFormat = "json"
300300
elif args.ForceUseLegacyManifestFormat:
301301
self.ReleaseManifestFormat = "legacy"
302-
elif self.DotnetMajorVersion >= 10:
303-
self.ReleaseManifestFormat = "json"
304302
elif self.DotnetMajorVersion >= 8:
305-
self.ReleaseManifestFormat = "legacy"
303+
self.ReleaseManifestFormat = "json"
306304

307305
self.VendorName: str | None = args.VendorName
308306
self.SourceLinkRepository: str | None = args.SourceLinkRepository

src/eng/dotnet-pkg-info.mk

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# DOTNET_MINOR: Minor .NET version number from the latest changelog entry.
55
# DOTNET_RUNTIME_ID: .NET runtime identifier of the current host.
66
# DOTNET_ARCH: .NET architecture identifier of the current host.
7-
# DOTNET_GIT_REPO: URI of the repository where the origiinal source is from.
8-
# DOTNET_GIT_COMMIT: Commit hash of the original source in the repository.
97
# DOTNET_DEB_VERSION_SDK_ONLY: The version for binary deb packages that only contain SDK components in compliance with FO127.
108
# DOTNET_DEB_VERSION_RUNTIME_ONLY: The version for binary deb packages that only contain Runtime components in compliance with FO127.
119
# DOTNET_CONTAINS_BOOTSTRAPPING_SDK: A boolean (true/false) that indicates if the source packages contains an embedded SDK for initial bootstrapping.
@@ -83,19 +81,6 @@ export DOTNET_RUNTIME_ID = $(shell . /etc/os-release; echo "$${ID}.$${VERSION_ID
8381
ifeq ($(DOTNET_80_OR_GREATER), true)
8482
DOTNET_DEB_VERSION_SDK_ONLY = $(shell $(CURDIR)/debian/eng/dotnet-version.py --sdk-only-deb-version)
8583
DOTNET_DEB_VERSION_RUNTIME_ONLY = $(shell $(CURDIR)/debian/eng/dotnet-version.py --runtime-only-deb-version)
86-
87-
ifeq ($(wildcard $(CURDIR)/release.info),)
88-
$(error "No release.info file in the source tarball found")
89-
endif
90-
91-
DOTNET_GIT_REPO = $(shell grep --only-matching --perl-regexp '(?<=^RM_GIT_REPO=).+$$' $(CURDIR)/release.info)
92-
DOTNET_GIT_COMMIT = $(shell grep --only-matching --perl-regexp '(?<=^RM_GIT_COMMIT=).+$$' $(CURDIR)/release.info)
93-
94-
ifeq ($(DOTNET_GIT_REPO),)
95-
$(error ".NET git source repository is NOT specified in release.info file.")
96-
else ifeq ($(DOTNET_GIT_COMMIT),)
97-
$(error ".NET git commit hash is NOT specified in release.info file.")
98-
endif
9984
endif
10085

10186
ifeq ($(DOTNET_90_OR_GREATER), true)

src/rules

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ else
6666
endif
6767

6868
ifeq ($(DOTNET_80_OR_GREATER), true)
69-
DOTNET_BUILD_ARGS += --source-repository $(DOTNET_GIT_REPO)
70-
DOTNET_BUILD_ARGS += --source-version $(DOTNET_GIT_COMMIT)
69+
ifeq ($(wildcard $(CURDIR)/release.json),)
70+
$(error "No release.json file in the source tarball found")
71+
endif
72+
73+
DOTNET_BUILD_ARGS += --release-manifest "$(CURDIR)/release.json"
7174
endif
7275

7376
ifeq ($(DOTNET_90_OR_GREATER), true)

0 commit comments

Comments
 (0)