Skip to content

Commit

Permalink
fix mod error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Oct 30, 2024
1 parent 1f9f128 commit d699152
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/workspace/load_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ func Load(ctx context.Context, workspacePath string, opts ...LoadPowerpipeWorksp
if w.ModfileExists() || !cfg.skipResourceLoadIfNoModfile {
ew = w.LoadWorkspaceMod(ctx)
}
if ew.GetError() != nil {
return nil, ew
}

// verify all runtime dependencies can be resolved
ew.Error = w.verifyResourceRuntimeDependencies()

return
return w, ew
}

0 comments on commit d699152

Please sign in to comment.