Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argonix
Commits
54ea6949
Commit
54ea6949
authored
Mar 06, 2019
by
Valentin Reis
Browse files
fix result copy in case of build failure.
parent
a854d92c
Pipeline
#5880
failed with stages
in 3 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Argonix.hs
View file @
54ea6949
...
...
@@ -415,13 +415,13 @@ wrap nixCommand target sa@ArgsCommon {..} = do
putText
$
nixc
<>
" "
<>
T
.
unwords
arglist
case
nixCommand
of
NixShell
->
executeFile
(
toS
nixc
)
True
(
fmap
toS
arglist
)
Nothing
NixBuild
->
P
.
runProcess
_
NixBuild
->
do
_
<-
P
.
runProcess
(
P
.
setEnv
(
fmap
(
\
(
x
,
y
)
->
(
toS
x
,
toS
y
))
envVars
)
(
P
.
proc
(
toS
nixc
)
$
fmap
toS
arglist
)
)
<>
runProcessVerbose
verbosity
"cp"
[
"-r"
,
"/tmp/papa"
,
"./result"
]
[]
<>
runProcessVerbose
verbosity
"cp"
[
"-r"
,
toS
tmpXDGHOME
,
"./nixtmpdir"
]
[]
runProcessVerbose
verbosity
"cp"
[
"-r"
,
"/tmp/papa"
,
"./result"
]
[]
runProcessVerbose
verbosity
"cp"
[
"-r"
,
toS
tmpXDGHOME
,
"./nixtmpdir"
]
[]
where
nixc
=
toCommand
nixCommand
arglist
=
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment