Skip to content

Commit

Permalink
Debug Windows failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoikin committed Jan 19, 2025
1 parent 8c9212e commit d22ab4a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 12 additions & 0 deletions spago.lock
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@
"console",
"control",
"datetime",
"debug",
"docs-search-common",
"docs-search-index",
"dodo-printer",
Expand Down Expand Up @@ -541,6 +542,7 @@
"contravariant",
"control",
"datetime",
"debug",
"distributive",
"docs-search-common",
"docs-search-index",
Expand Down Expand Up @@ -774,6 +776,7 @@
"contravariant",
"control",
"datetime",
"debug",
"distributive",
"docs-search-common",
"docs-search-index",
Expand Down Expand Up @@ -2084,6 +2087,15 @@
"tuples"
]
},
"debug": {
"type": "registry",
"version": "6.0.2",
"integrity": "sha256-vmkYFuXYuELBzeauvgHG6E6Kf/Hp1dAnxwE9ByHfwSg=",
"dependencies": [
"functions",
"prelude"
]
},
"distributive": {
"type": "registry",
"version": "6.0.0",
Expand Down
2 changes: 0 additions & 2 deletions src/Spago/Command/Auth.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Spago.Prelude
import Data.Array as Array
import Data.String (Pattern(..))
import Data.String as String
import Debug (traceM)
import Registry.SSH as SSH
import Spago.Command.Fetch (FetchEnv)
import Spago.Config as Config
Expand All @@ -29,7 +28,6 @@ run { keyPath } = do

newOwner <- FS.exists path >>= case _ of
false -> do
traceM { path, keyPath }
die $ "Cannot read public key at path " <> Path.quote path <> ": file does not exist."
true -> do
content <- FS.readTextFile path
Expand Down
2 changes: 1 addition & 1 deletion test/Spago/Publish.purs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ spec = Spec.around withTempDir do
traceM =<< FS.exists (fixture "publish/key")
spago [ "auth", "-i", (Path.toRaw $ fixture "publish/key") ] >>= shouldBeSuccess
doTheGitThing
spago [ "registry", "transfer", "--offline", "-i", (Path.toRaw $ fixture "publish/key") ] >>= shouldBeFailureErr (fixture "publish/transfer/offline.txt")
spago [ "registry", "transfer", "-v", "--offline", "-i", (Path.toRaw $ fixture "publish/key") ] >>= shouldBeFailureErr (fixture "publish/transfer/offline.txt")

Spec.it "#1110 installs versions of packages that are returned by the registry solver, but not present in cache" \{ spago, fixture, testCwd } -> do
let
Expand Down

0 comments on commit d22ab4a

Please sign in to comment.