Skip to content

haskell.nix seems to get confused between different repositories #1675

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

Closed
andreabedini opened this issue Sep 7, 2022 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@andreabedini
Copy link
Member

andreabedini commented Sep 7, 2022

This happened

❯ nix build --override-input cardanoHaskellPackageRepo path:/home/andrea/work/cardano-haskell-package-repo/_repo
warning: Git tree '/home/andrea/work/cardano-node' is dirty
warning: not writing modified lock file of flake 'git+file:///home/andrea/work/cardano-node':
• Updated input 'cardanoHaskellPackageRepo':
    'github:input-output-hk/cardano-haskell-package-repo/d3aaed5fedc48ead7e606e2ccd0a3895c7bb6c7a' (2022-09-01)
  → 'path:/home/andrea/work/cardano-haskell-package-repo/_repo?lastModified=1662560110&narHash=sha256-9D%2fhQw%2f5NMiIhVGrDx4bqJK4ag7PLbuHSy9q%2f+mAORs=' (2022-09-07)
trace: To make project.plan-nix for cardano-node a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
trace: To materialize project.plan-nix for cardano-node entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
trace: To make project.plan-nix for haskell-project a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
trace: To materialize project.plan-nix for haskell-project entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
error: builder for '/nix/store/rimmd38cdqp1c2bjr4yn1gx9y46syqhm-plutus-core-1.0.0.0-3.cabal.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://hackage.haskell.org/package/plutus-core-1.0.0.0/revision/3.cabal
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0    59    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download plutus-core-1.0.0.0-3.cabal

/home/andrea/work/cardano-haskell-package-repo/_repo is a built haskell repository (so it has 01-index.tgz etc).
Somehow haskell.nix tries to fetch https://hackage.haskell.org/package/plutus-core-1.0.0.0/revision/3.cabal which instead should be available in _repo/index/plutus-core/1.0.0.0/plutus-core.cabal.

@andreabedini
Copy link
Member Author

andreabedini commented Sep 8, 2022

At a first look, I think hspkg-builder does not support package revisions in a different repository than hackage.

@hamishmack
Copy link
Collaborator

Is there an easy way to reproduce this issue?

@hamishmack hamishmack transferred this issue from input-output-hk/nix-tools Sep 15, 2022
@yvan-sraka yvan-sraka added the bug Something isn't working label Sep 20, 2022
@andreabedini
Copy link
Member Author

WIP in #1650

@andreabedini
Copy link
Member Author

Closed by #1775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants