Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
4e873363
Commit
4e873363
authored
9 years ago
by
Edward Z. Yang
Browse files
Options
Downloads
Patches
Plain Diff
Make sure the hash is pre-package unique, fixes #2857.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
b083151f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cabal/Distribution/Simple/Configure.hs
+5
-1
5 additions, 1 deletion
Cabal/Distribution/Simple/Configure.hs
with
5 additions
and
1 deletion
Cabal/Distribution/Simple/Configure.hs
+
5
−
1
View file @
4e873363
...
...
@@ -1317,7 +1317,11 @@ computeComponentId pkg_descr cname dep_ipids flagAssignment = do
-- doubly concating list, as it just flatten out the nested list, so
-- different sources can produce same hash
let
hash
=
hashToBase62
$
(
show
$
dep_ipids
)
-- For safety, include the package + version here
-- for GHC 7.10, where just the hash is used as
-- the package key
(
display
(
package
pkg_descr
))
++
(
show
$
dep_ipids
)
++
show
flagAssignment
return
.
ComponentId
$
display
(
package
pkg_descr
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment