Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message of missing dependencies of dependency #1301

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Spago/Command/Fetch.purs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ getPackageDependencies packageName package = case package of
, "However, it didn't contain a `package` section."
]
Left errLines -> die
[ toDoc $ "Could not read config at " <> configLocation
[ toDoc $ "Could not lookup the dependencies of " <> PackageName.print packageName <> " in a spago.yaml config file."
, toDoc $ "Either make sure this file exists and is readable or declare it's dependencies in your project spago.yaml under workspace.extraPackages." <> PackageName.print packageName <> ".dependencies"
f-f marked this conversation as resolved.
Show resolved Hide resolved
, toDoc "Error: "
, indent $ toDoc errLines
]
Expand Down
Loading