Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't test a locally built CHaP with a small test project consisting of just a cabal.project file #752

Open
koslambrou opened this issue May 3, 2024 · 1 comment

Comments

@koslambrou
Copy link
Contributor

Followed the instructions in the "... by building packages with cabal" section: https://github.com/IntersectMBO/cardano-haskell-packages?tab=readme-ov-file#-by-building-packages-with-cabal

My cabal.project is:

-- Give it a different name to avoid cabal confusing it with the
-- real CHaP
repository cardano-haskell-packages-local
  -- Point this to the *built* repository
  url: file:/home/kolam/git/iog/cardano-haskell-packages/_repo
  secure: True
  -- You can skip the root-keys field

-- Add all the packages you want to try building
extra-packages:
  , cardano-testnet-8.8.0

The root folder only has this single cabal.project file.

Then, doing cabal update as instructed, I get:

$ cabal update
Warning: There are no packages or optional-packages in the project
open: does not exist (No such file or directory)
@andreabedini
Copy link
Contributor

andreabedini commented May 9, 2024

Ah yes, this must be that annoying bug of cabal where it tries to create a file before creating the directory the file is supposed to be. Try

mkdir ~/.cabal/packages/cardano-haskell-packages-local

(or equivalent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants