Pulling SRP from wrong repository
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
I'm not sure how I triggered this, but I got the following after doing a major rebase of my current branch:
```
➜ cabal build all
remote: Enumerating objects: 491, done.
remote: Counting objects: 100% (259/259), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 491 (delta 220), reused 233 (delta 215), pack-reused 232 (from 2)
Receiving objects: 100% (491/491), 180.39 KiB | 1.69 MiB/s, done.
Resolving deltas: 100% (240/240), completed with 71 local objects.
From github.com:IntersectMBO/ouroboros-consensus
+ 7993903f5...c1fafb367 bolt12/reusable-diffusion-3 -> origin/bolt12/reusable-diffusion-3 (forced update)
* [new branch] coot/public-network-state -> origin/coot/public-network-state
+ 2e5d4d875...6b0701bc3 fraser-iohk/one-era-gen-tx-id-bytestring -> origin/fraser-iohk/one-era-gen-tx-id-bytestring (forced update)
* [new tag] release-ouroboros-consensus-0.22.0.0 -> release-ouroboros-consensus-0.22.0.0
* [new tag] release-ouroboros-consensus-cardano-0.21.0.0 -> release-ouroboros-consensus-cardano-0.21.0.0
* [new tag] release-ouroboros-consensus-diffusion-0.19.0.0 -> release-ouroboros-consensus-diffusion-0.19.0.0
* [new tag] release-ouroboros-consensus-protocol-0.10.0.0 -> release-ouroboros-consensus-protocol-0.10.0.0
fatal: Could not parse object 'fb9b71f3bc33f8de673c6427736f09bf7972e81f'.
```
with this cabal.project excerpt:
```
...
source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-base.git
tag: fb9b71f3bc33f8de673c6427736f09bf7972e81f
subdir:
cardano-crypto-class
--sha256: sha256-ExQ497FDYlmQyZaXOTddU+KraAUHnTAqPiyt055v0+M=
```
The output seems to indicate it tried to pull that reference from the project git repo, instead of from the one indicated in the SRP.
A `rm -rf dist-newstyle` and `cabal build all` succeeded in pulling the right git refs from the right repos.
**To Reproduce**
I don't have a reproducer yet.
**System information**
- Operating system: Windows 11 24H2, MSYS2 CLANG64
- `cabal` 3.12.1.0, `ghc` 9.6.6
Contributor guide
Assessment
This issue has not been assessed yet.