Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Haskell
ghcup-hs
Commits
bcff46d3
Verified
Commit
bcff46d3
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Fix mingw PATH handling wrt
#371
parent
c7dc77e6
No related branches found
Branches containing commit
No related tags found
1 merge request
!261
Fix mingw PATH handling wrt #371
Pipeline
#53107
failed
3 years ago
Stage: checks
Stage: quick-test
Stage: test
Stage: expensive-test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/GHCup/Prelude/Process/Windows.hs
+3
-2
3 additions, 2 deletions
lib/GHCup/Prelude/Process/Windows.hs
scripts/bootstrap/bootstrap-haskell
+1
-1
1 addition, 1 deletion
scripts/bootstrap/bootstrap-haskell
with
4 additions
and
3 deletions
lib/GHCup/Prelude/Process/Windows.hs
+
3
−
2
View file @
bcff46d3
...
@@ -231,8 +231,9 @@ createProcessWithMingwPath :: MonadIO m
...
@@ -231,8 +231,9 @@ createProcessWithMingwPath :: MonadIO m
createProcessWithMingwPath
cp
=
do
createProcessWithMingwPath
cp
=
do
msys2Dir
<-
liftIO
ghcupMsys2Dir
msys2Dir
<-
liftIO
ghcupMsys2Dir
cEnv
<-
Map
.
fromList
<$>
maybe
(
liftIO
getEnvironment
)
pure
(
env
cp
)
cEnv
<-
Map
.
fromList
<$>
maybe
(
liftIO
getEnvironment
)
pure
(
env
cp
)
let
mingWPaths
=
[
msys2Dir
</>
"usr"
</>
"bin"
let
mingWPaths
=
[
msys2Dir
</>
"mingw64"
</>
"bin"
,
msys2Dir
</>
"mingw64"
</>
"bin"
]
,
msys2Dir
</>
"usr"
</>
"bin"
]
paths
=
[
"PATH"
,
"Path"
]
paths
=
[
"PATH"
,
"Path"
]
curPaths
=
(
\
x
->
maybe
[]
splitSearchPath
(
Map
.
lookup
x
cEnv
))
=<<
paths
curPaths
=
(
\
x
->
maybe
[]
splitSearchPath
(
Map
.
lookup
x
cEnv
))
=<<
paths
newPath
=
intercalate
[
searchPathSeparator
]
(
mingWPaths
++
curPaths
)
newPath
=
intercalate
[
searchPathSeparator
]
(
mingWPaths
++
curPaths
)
...
...
This diff is collapsed.
Click to expand it.
scripts/bootstrap/bootstrap-haskell
+
1
−
1
View file @
bcff46d3
...
@@ -537,7 +537,7 @@ adjust_cabal_config() {
...
@@ -537,7 +537,7 @@ adjust_cabal_config() {
else
else
cabal_bin
=
"
$HOME
/AppData/Roaming/cabal/bin"
cabal_bin
=
"
$HOME
/AppData/Roaming/cabal/bin"
fi
fi
edo cabal user-config
-a
"extra-prog-path:
$(
cygpath
-w
"
$GHCUP_BIN
"
)
,
$(
cygpath
-w
"
$cabal_bin
"
)
,
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/
usr
/bin
)
,
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/
mingw64
/bin
)
"
-a
"extra-include-dirs:
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/mingw64/include
)
"
-a
"extra-lib-dirs:
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/mingw64/lib
)
"
-f
init
edo cabal user-config
-a
"extra-prog-path:
$(
cygpath
-w
"
$GHCUP_BIN
"
)
,
$(
cygpath
-w
"
$cabal_bin
"
)
,
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/
mingw64
/bin
)
,
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/
usr
/bin
)
"
-a
"extra-include-dirs:
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/mingw64/include
)
"
-a
"extra-lib-dirs:
$(
cygpath
-w
"
$GHCUP_MSYS2
"
/mingw64/lib
)
"
-f
init
}
}
ask_cabal_config_init
()
{
ask_cabal_config_init
()
{
...
...
This diff is collapsed.
Click to expand it.
Julian Ospald
@maerwald
mentioned in issue
#371 (closed)
·
3 years ago
mentioned in issue
#371 (closed)
mentioned in issue #371
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