Require committed remote current state
This commit is contained in:
@@ -106,9 +106,8 @@ func Resolve(
|
||||
ValidateRunID: true,
|
||||
})
|
||||
if err != nil {
|
||||
var runPointerMissing *artifacts.CurrentRunPointerMissingError
|
||||
var manifestMissing *artifacts.CurrentManifestMissingError
|
||||
if errors.As(err, &runPointerMissing) || errors.As(err, &manifestMissing) {
|
||||
var pointerMissing *artifacts.CurrentCommitPointerMissingError
|
||||
if errors.As(err, &pointerMissing) {
|
||||
if len(requiredNames) > 0 {
|
||||
return nil, fmt.Errorf("required previous-session artifacts unavailable: remote %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user