Skip to content
Snippets Groups Projects
Commit 12d3b66c authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

ghcup-metadata: Fix use of arch argument

The arch argument was ignored when making the jobname, which lead to
failures when generating metadata for the alpine_3_18-aarch64 bindist.

Fixes #25089
parent 20383006
No related branches found
No related tags found
No related merge requests found
Pipeline #98321 failed
Pipeline: head.hackage

#98327

    Pipeline: head.hackage

    #98323

      Pipeline: test-primops

      #98322

        ......@@ -94,19 +94,19 @@ windowsArtifact = PlatformSpec ( 'x86_64-windows'
        , 'ghc-{version}-x86_64-unknown-mingw32' )
        def centos(n, arch='x86_64'):
        return linux_platform(arch, "x86_64-linux-centos{n}".format(n=n))
        return linux_platform(arch, "{arch}-linux-centos{n}".format(n=n,arch=arch))
        def fedora(n, arch='x86_64'):
        return linux_platform(arch, "x86_64-linux-fedora{n}".format(n=n))
        return linux_platform(arch, "{arch}-linux-fedora{n}".format(n=n,arch=arch))
        def alpine(n, arch='x86_64'):
        return linux_platform(arch, "x86_64-linux-alpine{n}".format(n=n))
        return linux_platform(arch, "{arch}-linux-alpine{n}".format(n=n,arch=arch))
        def rocky(n, arch='x86_64'):
        return linux_platform(arch, "x86_64-linux-rocky{n}".format(n=n))
        return linux_platform(arch, "{arch}-linux-rocky{n}".format(n=n,arch=arch))
        def ubuntu(n, arch='x86_64'):
        return linux_platform(arch, "x86_64-linux-ubuntu{n}".format(n=n))
        return linux_platform(arch, "{arch}-linux-ubuntu{n}".format(n=n,arch=arch))
        def linux_platform(arch, opsys):
        return PlatformSpec( opsys, 'ghc-{version}-{arch}-unknown-linux'.format(version="{version}", arch=arch) )
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment