haskell / haskell/cabal

active-repositories in cabal.project does not override cabal.config

Open
#9,081 2 comments 0 reactions 0 assignees View on GitHub
re: config-file re: project-file type: user-question
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Running `ghc-wasm-meta`'s `setup.sh` script adds `active-repositories: hackage.haskell.org, head.hackage.haskell.org:override` to `~/.cabal/cabal.config` and runs `cabal update`.

In my project, I have `cabal.project` with `active-repositories: hackage.haskell.org`, but `cabal update` is still showing head.hackage. I would expect `active-repositories` in `cabal.project` to override `cabal.config`; is that assumption wrong? How do I prevent using head.hackage without patching the script to not set head.hackage?

**System information**
- Operating system
- `cabal`, `ghc` versions

**Additional context**
Add any other context about the problem here.

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.