haskell / haskell/cabal

Contents of global store affect PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs

Open
#5,743 0 comments 0 reactions 0 assignees View on GitHub
cabal-testsuite
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

```
PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs:4:18:
Ambiguous module name ‘Crypto.Hash.SHA256’:
it was found in multiple packages:
cryptohash-sha256-0.11.101.0@InMPvfkfOWL7gXU92SS1pC cryptohash-0.11.9@KYvqM6RQrWWhvVgyfTvmG
```

contents of my store:

```
% ls ~/.cabal/store/ghc-7.10.3/|grep crypto
crypto-api-0.13.2-2fa231dcef1316a19537e7e2ed7cf147bd9854cb235d2b71da9b8a15030ea1f7
crypto-api-0.13.2-6f593acfe36ff2865a96e77631898d9cff977a9f0d264417f68ef5bc545af6ed
cryptohash-0.11.9-bb080a76443a007b5009bf901c0d8a0be61fa4ec978085f0d903efe7748a8eaf
cryptohash-cryptoapi-0.1.4-f8e9d8bb7d4efd94219276d8dbdc98132bec2e9304c87af7b087427cfc4ef630
cryptohash-md5-0.11.100.1-ed3e0b994f9bc39dc7ea10dae519042ce2b97af83838f9a243ddd83bb0b3c515
cryptohash-sha1-0.11.100.1-9b7e6bf182df4fbb151f9e1e554c6226a1a61adcff84e661792ca18d7bc134f1
cryptohash-sha256-0.11.101.0-541559c14cc76365a19f26bf3fd7c60613e1870c1ce0f5cd3363cf2a9b76d027
cryptonite-0.25-3bdbe5b462b88a4678bcb8faa08d59761bf92ac944a79cd1e09627fc574c0618
crypto-pubkey-types-0.4.3-7fe5f9adadcb09f22cb73d123c36dd9961e53f87b722892a3c04994efe4d8765
monadcryptorandom-0.7.2.1-8655a757603cab0ae535807d9e26c5ebb08b8dea089ea27d648c2786d6d72a10
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs with the reported global Cabal store contents. Read the failing test and investigate how the two packages exposing Crypto.Hash.SHA256 are selected. Done means the deterministic test no longer depends on conflicting contents in the global store.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.