Skip to content

Commit e8d747a

Browse files
committed
Update to latest versions of gren-lang/core and gren-lang/node.
1 parent 387c2f6 commit e8d747a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

gren.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"gren-version": "0.5.0 <= v < 0.6.0",
2525
"dependencies": {
26-
"gren-lang/core": "6.0.1 <= v < 7.0.0",
27-
"gren-lang/node": "5.0.0 <= v < 6.0.0"
26+
"gren-lang/core": "local:../core",
27+
"gren-lang/node": "local:../node"
2828
}
2929
}

src/Compiler/Backend.gren

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ downloadUrl platform cpuArch =
104104

105105
{-| Downlod the compiler blob.
106106
-}
107-
download : HttpClient.Permission -> String -> Task (HttpClient.Error Bytes) (HttpClient.Response Bytes)
107+
download : HttpClient.Permission -> String -> Task HttpClient.Error (HttpClient.Response Bytes)
108108
download permission url =
109109
HttpClient.get url
110110
|> HttpClient.expectBytes
@@ -280,7 +280,7 @@ type alias RunOptions msg =
280280
{ useColor : Bool
281281
, compilerPath : Path
282282
, pathToString : (Path -> String)
283-
, onInit : { processId : Process.Id, streams : Maybe ChildProcess.StreamIO } -> msg
283+
, connection : ChildProcess.Connection msg
284284
, onComplete : (Int -> msg)
285285
}
286286

@@ -301,11 +301,10 @@ run permission options =
301301
permission
302302
(options.pathToString options.compilerPath)
303303
[]
304-
{ ( ChildProcess.defaultSpawnOptions options.onInit options.onComplete )
304+
{ ( ChildProcess.defaultSpawnOptions options.connection options.onComplete )
305305
| shell = NoShell
306306
, environmentVariables =
307307
ChildProcess.MergeWithEnvironmentVariables colorEnvVar
308-
, connection = ChildProcess.External
309308
}
310309

311310

src/FileSystem/Lock.gren

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ update fsPerm msg model =
144144
{ path = path
145145
, model = { model | locks = Set.remove (Path.toPosixString lockPath) model.locks }
146146
, command =
147-
FileSystem.remove fsPerm { recursive = True, ignoreErrors = False } lockPath
147+
FileSystem.remove fsPerm { recursive = True } lockPath
148148
|> Task.onError (\err -> Task.succeed lockPath)
149149
|> Task.execute
150150
}
@@ -163,7 +163,7 @@ update fsPerm msg model =
163163
LockMetaCheck { path, attempt, result = Ok { time, meta } } ->
164164
if Time.posixToMillis time - Time.posixToMillis meta.lastAccessed > 5000 then
165165
-- Lock is stale, let's try again
166-
FileSystem.remove fsPerm { recursive = True, ignoreErrors = False } path
166+
FileSystem.remove fsPerm { recursive = True } path
167167
|> Task.onError (\_ -> Task.succeed path)
168168
|> Task.perform (\_ -> Lock { path = fromLockPath path, attempt = attempt + 1 })
169169
|> Working

0 commit comments

Comments
 (0)