Skip to content

Commit d23169b

Browse files
committed
Merge branch 'local-archives' of https://github.com/loewenstein/stack
2 parents 8386a3f + 08c4533 commit d23169b

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

src/Stack/Snapshot.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ loadResolver (ResolverCustom url loc) = do
285285
}
286286
resolveLocalArchive pl = pl
287287
resolveLocalFilePath path =
288-
if not $ isURI path && FilePath.isRelative path
289-
then FilePath.dropFileName fp FilePath.</> FilePath.normalise path
290-
else path
288+
if isURI path || FilePath.isAbsolute path
289+
then path
290+
else FilePath.dropFileName fp FilePath.</> FilePath.normalise path
291291

292292
WithJSONWarnings (sd0, mparentResolver, mcompiler) warnings <-
293293
liftIO (decodeFileEither fp) >>= either
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: local-snapshot.yaml
1+
resolver: snapshots/local-snapshot.yaml
22
packages: []
33
allow-newer: true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: remote-snapshot.yaml
1+
resolver: snapshots/remote-snapshot.yaml
22
packages: []
33
allow-newer: true

0 commit comments

Comments
 (0)