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
a7a9766a
Unverified
Commit
a7a9766a
authored
5 years ago
by
Daniel Gröber (dxld)
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #6195 from DanielG/fix-v2-install-progdb
Fix v2-install ProgramDb confusion
parents
d8e55bd9
1ad6c0fc
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-install/Distribution/Client/CmdInstall.hs
+6
-4
6 additions, 4 deletions
cabal-install/Distribution/Client/CmdInstall.hs
with
6 additions
and
4 deletions
cabal-install/Distribution/Client/CmdInstall.hs
+
6
−
4
View file @
a7a9766a
...
...
@@ -468,7 +468,8 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags, testFlags
hcPath
=
flagToMaybe
projectConfigHcPath
hcPkg
=
flagToMaybe
projectConfigHcPkg
progDb
=
-- ProgramDb with directly user specified paths
preProgDb
=
userSpecifyPaths
(
Map
.
toList
(
getMapLast
packageConfigProgramPaths
))
.
userSpecifyArgss
(
Map
.
toList
(
getMapMappend
packageConfigProgramArgs
))
.
modifyProgramSearchPath
...
...
@@ -476,9 +477,10 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags, testFlags
|
dir
<-
fromNubList
packageConfigProgramPathExtra
])
$
defaultProgramDb
-- progDb is a program database with compiler tools configured properly
(
compiler
@
Compiler
{
compilerId
=
compilerId
@
(
CompilerId
compilerFlavor
compilerVersion
)
},
platform
,
progDb
'
)
<-
configCompilerEx
hcFlavor
hcPath
hcPkg
progDb
verbosity
compilerId
@
(
CompilerId
compilerFlavor
compilerVersion
)
},
platform
,
progDb
)
<-
configCompilerEx
hcFlavor
hcPath
hcPkg
pr
ePr
ogDb
verbosity
let
globalEnv
name
=
...
...
@@ -527,7 +529,7 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags, testFlags
cabalLayout
=
mkCabalDirLayout
cabalDir
mstoreDir
mlogsDir
packageDbs
=
storePackageDBStack
(
cabalStoreDirLayout
cabalLayout
)
compilerId
installedIndex
<-
getInstalledPackages
verbosity
compiler
packageDbs
progDb
'
installedIndex
<-
getInstalledPackages
verbosity
compiler
packageDbs
progDb
let
(
envSpecs
,
envEntries'
)
=
environmentFileToSpecifiers
installedIndex
envEntries
...
...
This diff is collapsed.
Click to expand it.
Daniel Gröber (dxld)
@DanielG
mentioned in commit
f2b2ab7c
·
5 years ago
mentioned in commit
f2b2ab7c
mentioned in commit f2b2ab7c11541fecef81bd9f954d7ff33002c485
Toggle commit list
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