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
cbf07674
Verified
Commit
cbf07674
authored
5 years ago
by
Julian Ospald
Browse files
Options
Downloads
Plain Diff
Merge branch 'hadrian'
parents
9db06644
86c144b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!15
Hadrian
,
!13
Support Hadrian provided bindists
,
!12
Fix dlSubdir of ghc-8.10.1-x86_64-unknown-linux for Linux_Alpine
Pipeline
#21212
passed with warnings
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ghcup-0.0.2.json
+1
-1
1 addition, 1 deletion
ghcup-0.0.2.json
lib/GHCup/Data/GHCupDownloads.hs
+1
-1
1 addition, 1 deletion
lib/GHCup/Data/GHCupDownloads.hs
lib/GHCup/Utils.hs
+20
-7
20 additions, 7 deletions
lib/GHCup/Utils.hs
with
22 additions
and
9 deletions
ghcup-0.0.2.json
+
1
−
1
View file @
cbf07674
...
...
@@ -694,7 +694,7 @@
"Linux_Alpine"
:
{
"unknown_versioning"
:
{
"dlHash"
:
"cb13b645d103e2fba2eb8dfcc4e5f2fbd9550c00c4df42f342b4210436dcb8a8"
,
"dlSubdir"
:
"ghc-8.10.1"
,
"dlSubdir"
:
"ghc-8.10.1
-x86_64-unknown-linux
"
,
"dlUri"
:
"https://downloads.haskell.org/~ghc/8.10.1/ghc-8.10.1-x86_64-alpine3.10-linux-integer-simple.tar.xz"
}
},
...
...
This diff is collapsed.
Click to expand it.
lib/GHCup/Data/GHCupDownloads.hs
+
1
−
1
View file @
cbf07674
...
...
@@ -883,7 +883,7 @@ ghc_8101_64_darwin = DownloadInfo
ghc_8101_64_alpine
::
DownloadInfo
ghc_8101_64_alpine
=
DownloadInfo
[
uri
|
https://downloads.haskell.org/~ghc/8.10.1/ghc-8.10.1-x86_64-alpine3.10-linux-integer-simple.tar.xz
|]
(
Just
[
rel
|
ghc-8.10.1
|]
)
(
Just
[
rel
|
ghc-8.10.1
-x86_64-unknown-linux
|]
)
"cb13b645d103e2fba2eb8dfcc4e5f2fbd9550c00c4df42f342b4210436dcb8a8"
...
...
This diff is collapsed.
Click to expand it.
lib/GHCup/Utils.hs
+
20
−
7
View file @
cbf07674
...
...
@@ -417,13 +417,26 @@ ghcToolFiles ver = do
(
[
s
|
^([a-zA-Z0-9_-]*[a-zA-Z0-9_]-)?ghc$
|]
::
ByteString
)
)
(
Just
symver
)
<-
(
B
.
stripPrefix
(
toFilePath
ghcbin
<>
"-"
)
.
takeFileName
)
<$>
(
liftIO
$
readSymbolicLink
$
toFilePath
(
bindir
</>
ghcbin
))
when
(
B
.
null
symver
)
(
throwIO
$
userError
$
"Fatal: ghc symlink target is broken"
)
pure
.
filter
(
\
x
->
not
$
symver
`
B
.
isSuffixOf
`
toFilePath
x
)
$
files
let
ghcbinPath
=
bindir
</>
ghcbin
ghcIsHadrian
<-
liftIO
$
isHadrian
ghcbinPath
onlyUnversioned
<-
if
ghcIsHadrian
then
pure
id
else
do
(
Just
symver
)
<-
(
B
.
stripPrefix
(
toFilePath
ghcbin
<>
"-"
)
.
takeFileName
)
<$>
(
liftIO
$
readSymbolicLink
$
toFilePath
ghcbinPath
)
when
(
B
.
null
symver
)
(
throwIO
$
userError
$
"Fatal: ghc symlink target is broken"
)
pure
$
filter
(
\
x
->
not
$
symver
`
B
.
isSuffixOf
`
toFilePath
x
)
pure
$
onlyUnversioned
files
where
-- GHC is moving some builds to Hadrian for bindists,
-- which doesn't create versioned binaries.
-- https://gitlab.haskell.org/haskell/ghcup-hs/issues/31
isHadrian
::
Path
Abs
-- ^ ghcbin path
->
IO
Bool
isHadrian
=
fmap
(
/=
SymbolicLink
)
.
getFileType
-- | This file, when residing in ~/.ghcup/ghc/<ver>/ signals that
...
...
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