Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stack
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Commercial Haskell
stack
Commits
0fa51b99
Commit
0fa51b99
authored
5 years ago
by
Emanuel Borsboom
Browse files
Options
Downloads
Patches
Plain Diff
release.hs: enable offical release flags explicitly
Works around
https://github.com/commercialhaskell/stack/issues/4960
parent
1bc6c807
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
etc/scripts/release.hs
+12
-4
12 additions, 4 deletions
etc/scripts/release.hs
with
12 additions
and
4 deletions
etc/scripts/release.hs
+
12
−
4
View file @
0fa51b99
...
...
@@ -199,12 +199,12 @@ rules global@Global{..} args = do
c
-- 'stack.cabal' is autogenerated by 'stack', delete to ensure not stale
_
<-
liftIO
$
tryJust
(
guard
.
isDoesNotExistError
)
(
removeFile
"stack.cabal"
)
()
<-
cmd0
"install"
gBuildArgs
$
concat
$
concat
[[
"--pedantic --no-haddock-deps
--flag stack:integration-tests
"
]
()
<-
cmd0
"install"
gBuildArgs
integrationTestFlagArgs
$
concat
$
concat
[[
"--pedantic --no-haddock-deps "
]
,[
" --haddock"
|
gTestHaddocks
]
,[
" stack"
]]
let
cmd'
c
=
cmd
(
AddPath
[
tmpDir
]
[]
)
stackProgName
(
stackArgs
global
)
c
()
<-
cmd'
"test"
gBuildArgs
"--pedantic --flag stack:
integration
-t
est
s
--exec stack-integration-test stack"
()
<-
cmd'
"test"
gBuildArgs
integration
T
est
FlagArgs
"--pedantic
--exec stack-integration-test stack"
return
()
copyFileChanged
(
releaseBinDir
</>
binaryName
</>
stackExeFileName
)
out
...
...
@@ -300,13 +300,21 @@ rules global@Global{..} args = do
[
"--local-bin-path="
++
takeDirectory
out
]
"install"
gBuildArgs
integrationTestFlagArgs
"--pedantic"
"--flag stack:integration-tests"
"stack"
)
(
tryJust
(
guard
.
isDoesNotExistError
)
(
removeFile
out
))
where
integrationTestFlagArgs
=
-- Explicitly enabling 'hide-dependency-versions' and 'supported-build' to work around
-- https://github.com/commercialhaskell/stack/issues/4960
[
"--flag=stack:integration-tests"
,
"--flag=stack:hide-dependency-versions"
,
"--flag=stack:supported-build"
]
getBinaryPkgStageFiles
=
do
docFiles
<-
getDocFiles
let
stageFiles
=
concat
...
...
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