diff --git a/src/Spago/Command/Publish.purs b/src/Spago/Command/Publish.purs index 0594927d2..5d9d87f50 100644 --- a/src/Spago/Command/Publish.purs +++ b/src/Spago/Command/Publish.purs @@ -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 @@ -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. diff --git a/test-fixtures/publish-extra-package-core-dependency.txt b/test-fixtures/publish-extra-package-core-dependency.txt index 920fcdd95..8b8f632bb 100644 --- a/test-fixtures/publish-extra-package-core-dependency.txt +++ b/test-fixtures/publish-extra-package-core-dependency.txt @@ -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 diff --git a/test-fixtures/publish/extra-package-core/spago.yaml b/test-fixtures/publish/extra-package-core/spago.yaml index fa8527697..916de40e2 100644 --- a/test-fixtures/publish/extra-package-core/spago.yaml +++ b/test-fixtures/publish/extra-package-core/spago.yaml @@ -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"]