Run report generation without workspace state
This commit is contained in:
@@ -33,7 +33,7 @@ type SourceInspection struct {
|
||||
}
|
||||
|
||||
func InspectReports(ctx context.Context, req InspectReportsRequest) ([]state.ReportRecord, error) {
|
||||
store, err := defaultStore(req.Config)
|
||||
store, err := state.NewFilesystemStore(req.Config.Workspace)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -94,7 +94,7 @@ type runInspection struct {
|
||||
}
|
||||
|
||||
func inspectRun(ctx context.Context, req InspectRunRequest) (runInspection, error) {
|
||||
store, err := defaultStore(req.Config)
|
||||
store, err := state.NewFilesystemStore(req.Config.Workspace)
|
||||
if err != nil {
|
||||
return runInspection{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user