haskell / haskell/cabal

cabal update doesn't respect index-state?

Open
#9,039 3 comments 0 reactions 1 assignee Claimed by @andreabedini View on GitHub
cabal-install: cmd/update re: user experience type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
I have a `cabal.project` file containing
```
index-state:
, hackage.haskell.org 2023-03-16T09:32:28Z
, head.hackage 2023-02-16T05:32:02Z
```
but running `cabal update` in CI is showing:
```
Downloading the latest package lists from:
- hackage.haskell.org
- head.hackage.ghc.haskell.org
Package list of head.hackage.ghc.haskell.org has been updated.
The index-state is set to 2023-06-09T14:04:13Z.
Package list of hackage.haskell.org has been updated.
The index-state is set to 2023-06-17T22:28:17Z.
```
Is this expected?

I'm using the scripts from `ghc-wasm-meta`, which installs `cabal-install-3.10` and [this `cabal.config` file](https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/blob/master/cabal.config)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.