Skip to content

Commit

Permalink
Line break
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoikin committed Aug 26, 2024
1 parent d27c569 commit 4fe7ce3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Spago/Command/Publish.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Data.Formatter.DateTime as DateTime
import Data.List as List
import Data.Map as Map
import Data.String as String
import Dodo (break, lines)
import Effect.Aff (Milliseconds(..))
import Effect.Aff as Aff
import Effect.Ref as Ref
Expand Down Expand Up @@ -214,7 +215,8 @@ publish _args = do
, "To be able to publish a package to the registry, all of its dependencies have to be packages registered on the Registry."
, "Please replace the following packages with versions that are present in the Registry:" -- TODO point to docs
]
<> toDoc (map (indent <<< toDoc <<< (append "- ") <<< Json.stringifyJson PackageName.codec) fail)
<> break
<> lines (fail <#> \p -> indent $ toDoc $ "- " <> PackageName.print p)
else do
-- All dependencies come from the registry so we can trust the build plan.
-- We can then try to build with the dependencies from there.
Expand Down
4 changes: 3 additions & 1 deletion test-fixtures/publish-extra-package-core-dependency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ Your package "aaa" is not ready for publishing yet, encountered 1 error:

✘ Some of the packages you specified as `extraPackages` do not point to the Registry.
To be able to publish a package to the registry, all of its dependencies have to be packages registered on the Registry.
Please replace the following packages with versions that are present in the Registry:- "maybe"
Please replace the following packages with versions that are present in the Registry:
- effect
- maybe
4 changes: 4 additions & 0 deletions test-fixtures/publish/extra-package-core/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ workspace:
repo: https://github.com/purescript/purescript-maybe.git
version: v6.0.0
dependencies: ["prelude", "control", "invariant", "newtype"]
effect:
repo: https://github.com/purescript/purescript-effect.git
version: v4.0.0
dependencies: ["prelude"]

0 comments on commit 4fe7ce3

Please sign in to comment.