[Git][ghc/ghc][wip/ghcup] ghcup-metadata: Drop output_name field
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Sat Apr 27 17:14:13 UTC 2024
Ben Gamari pushed to branch wip/ghcup at Glasgow Haskell Compiler / GHC
Commits:
fe1ea0d2 by Ben Gamari at 2024-04-27T13:14:07-04:00
ghcup-metadata: Drop output_name field
This is entirely redundant to the filename of the URL. There is no
compelling reason to name the downloaded file differently from its
source.
- - - - -
1 changed file:
- .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py
Changes:
=====================================
.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py
=====================================
@@ -65,7 +65,6 @@ eprint(f"Supported platforms: {job_mapping.keys()}")
class Artifact(NamedTuple):
job_name: str
download_name: str
- output_name: str
subdir: str
# Platform spec provides a specification which is agnostic to Job
@@ -75,11 +74,9 @@ class PlatformSpec(NamedTuple):
subdir: str
source_artifact = Artifact('source-tarball'
- , 'ghc-{version}-src.tar.xz'
, 'ghc-{version}-src.tar.xz'
, 'ghc-{version}' )
test_artifact = Artifact('source-tarball'
- , 'ghc-{version}-testsuite.tar.xz'
, 'ghc-{version}-testsuite.tar.xz'
, 'ghc-{version}/testsuite' )
@@ -164,11 +161,6 @@ def mk_one_metadata(release_mode, version, job_map, artifact):
, "dlSubdir": artifact.subdir.format(version=version)
, "dlHash" : h }
- # Only add dlOutput if it is inconsistent with the filename inferred from the URL
- output = artifact.output_name.format(version=version)
- if Path(urlparse(final_url).path).name != output:
- res["dlOutput"] = output
-
eprint(res)
return res
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fe1ea0d213a0e8cd8540ff35bc7778e27b8f5ad7
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fe1ea0d213a0e8cd8540ff35bc7778e27b8f5ad7
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240427/9c44b1ab/attachment-0001.html>
More information about the ghc-commits
mailing list