Skip to content

2.4.0.0: cabal update: Verification loop. Errors in order: <repo>/timestamp.json is expired #3861

Closed
@benz0li

Description

@benz0li

Your environment

Which OS do you use? Alpine Linux 3.18.4

Which version of GHC do you use and how did you install it? 9.8.1
👉 Docker image glcr.b-data.ch/ghc/ghc-musl:9.8.1 (https://github.com/benz0li/ghc-musl)

Steps to reproduce

On a host with docker installed

docker run --rm -ti glcr.b-data.ch/ghc/ghc-musl:9.8.1 bash

Inside the container

export HLS_VERSION=2.4.0.0 \
  && apk add --no-cache patchelf findutils \
  && cd /tmp \
  && curl -sSL "https://github.com/haskell/haskell-language-server/archive/refs/tags/$HLS_VERSION.tar.gz" \
    -o "haskell-language-server-$HLS_VERSION.tar.gz" \
  && tar -xzf "haskell-language-server-$HLS_VERSION.tar.gz" \
  && cd "haskell-language-server-$HLS_VERSION" \
  && . .github/scripts/env.sh \
  && . .github/scripts/common.sh \
  && sed -i.bak -e '/DELETE MARKER FOR CI/,/END DELETE/d' cabal.project \
  && GHCS="$GHC_VERSION" \
  && export GHCS \
  && ARTIFACT="$(uname -m)-linux-alpine" \
  && export ARTIFACT \
  && cabal update \
  && emake hls-ghc \
  && emake bindist \
  && strip "out/bindist/$ARTIFACT/haskell-language-server-$HLS_VERSION/lib/$GHC_VERSION"/*.so \
  && emake bindist-tar

Expected behaviour

HLS builds successfully. E.g. https://gitlab.b-data.ch/ghc/ghc-musl/-/jobs/84985

Actual behaviour

Script errors at cabal update. E.g. https://gitlab.b-data.ch/ghc/ghc-musl/-/jobs/87062

Debug information

fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/2) Installing findutils (4.9.0-r5)
(2/2) Installing patchelf (0.18.0-r1)
Executing busybox-1.36.1-r2.trigger
OK: 523 MiB in 102 packages
Config file path source is default config file.
Config file not found: /cabal/config
Writing default configuration to /cabal/config
Warning: Caught exception during _mirrors lookup:DnsNoData
Warning: No mirrors found for https://ghc.gitlab.haskell.org/head.hackage/
Downloading the latest package lists from:
- hackage.haskell.org
- head.hackage.ghc.haskell.org
Verification loop. Errors in order:
  <repo>/timestamp.json is expired
  <repo>/timestamp.json is expired
  <repo>/timestamp.json is expired
  <repo>/timestamp.json is expired
  <repo>/timestamp.json is expired

Cross references

Updated: 2023-11-16T05:50+01:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindistsAnything to do with binary distributions of HLSstatus: needs triagetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions