We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cff5e commit 08c4533Copy full SHA for 08c4533
src/Stack/Snapshot.hs
@@ -282,9 +282,9 @@ loadResolver (ResolverCustom url loc) = do
282
}
283
resolveLocalArchive pl = pl
284
resolveLocalFilePath path =
285
- if not $ isURI path && FilePath.isRelative path
286
- then FilePath.dropFileName fp FilePath.</> FilePath.normalise path
287
- else path
+ if isURI path || FilePath.isAbsolute path
+ then path
+ else FilePath.dropFileName fp FilePath.</> FilePath.normalise path
288
289
WithJSONWarnings (sd0, mparentResolver, mcompiler) warnings <-
290
liftIO (decodeFileEither fp) >>= either
0 commit comments