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
d2c5d4df
Verified
Commit
d2c5d4df
authored
4 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Test that we're not missing GHCup alpine
parent
6f1b8b40
No related branches found
No related tags found
1 merge request
!28
Cabal install 3.4.0.0 rc1
Pipeline
#23287
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/ghcup-gen/Validate.hs
+10
-0
10 additions, 0 deletions
app/ghcup-gen/Validate.hs
with
10 additions
and
0 deletions
app/ghcup-gen/Validate.hs
+
10
−
0
View file @
d2c5d4df
...
...
@@ -9,6 +9,7 @@ import GHCup.Download
import
GHCup.Types
import
GHCup.Utils.Dirs
import
GHCup.Utils.Logger
import
GHCup.Utils.Version.QQ
import
Control.Exception.Safe
import
Control.Monad
...
...
@@ -89,6 +90,15 @@ validate dls = do
when
((
not
$
any
(
==
FreeBSD
)
pspecs
)
&&
arch
==
A_64
)
$
lift
$
$
(
logWarn
)
[
i
|
FreeBSD missing for #{t} #{v'} #{arch}
|]
-- alpine needs to be set explicitly, because
-- we cannot assume that "Linux UnknownLinux" runs on Alpine
-- (although it could be static)
when
(
not
$
any
(
==
Linux
Alpine
)
pspecs
)
$
case
t
of
GHCup
->
(
lift
$
$
(
logError
)
[
i
|
Linux Alpine missing for #{t} #{v'} #{arch}
|]
)
>>
addError
Cabal
|
v
>
[
vver
|
2.4.1.0
|]
->
(
lift
$
$
(
logError
)
[
i
|
Linux Alpine missing for #{t} #{v'} #{arch}
|]
)
>>
addError
_
->
lift
$
$
(
logWarn
)
[
i
|
Linux Alpine missing for #{t} #{v'} #{arch}
|]
checkUniqueTags
tool
=
do
let
allTags
=
join
$
M
.
elems
$
availableToolVersions
dls
tool
let
nonUnique
=
...
...
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