Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argotk
Commits
021f3476
Commit
021f3476
authored
Feb 16, 2019
by
Valentin Reis
Browse files
sandbox work
parent
42e018b0
Pipeline
#5339
passed with stage
in 2 minutes and 27 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/Argo/Utils.hs
View file @
021f3476
...
...
@@ -155,11 +155,6 @@ runI (Instrumentation crProc (StdOutLog stdOut) (StdErrLog stdErr) t) = try
|
otherwise
->
yield
b
>>
untilMatch
msg
sawTraceback
Nothing
->
return
Clean
{-withSinkFileNoBuffering-}
{-:: (MonadUnliftIO m, MonadIO n)-}
{-=> IO.FilePath-}
{--> (ConduitM ByteString o n () -> m a)-}
{--> m a-}
withSinkFileNoBuffering
filepath
inner
=
withRunInIO
$
\
run
->
IO
.
withBinaryFile
filepath
IO
.
WriteMode
$
\
h
->
do
hSetBuffering
h
NoBuffering
...
...
src/argotk.hs
View file @
021f3476
...
...
@@ -24,6 +24,7 @@ import Data.Text as T
(
unpack
,
Text
)
import
System.IO
opts
::
StackArgs
->
Parser
(
Shell
()
)
opts
sa
=
hsubparser
...
...
@@ -393,6 +394,7 @@ clean StackArgs {..} = cleanLeftovers workingDirectory
main
::
IO
()
main
=
do
hSetBuffering
System
.
IO
.
stdout
NoBuffering
argonixShare
<-
getEnv
"ARGOTK_SHARE"
hwlocTC
<-
single
$
inshell
"hwloc-calc machine:0 -N PU"
empty
let
a
=
def
{
shareDir
=
ShareDir
$
decodeString
argonixShare
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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