Skip to content

Commit

Permalink
fix(snap), fix HeadNotFound during snap when validating the same-lane…
Browse files Browse the repository at this point in the history
… for deps (#8474)
  • Loading branch information
davidfirst authored Jan 30, 2024
1 parent 59e5ad9 commit 4377ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scopes/component/snapping/snapping.main.runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
ArtifactSource,
getArtifactsFiles,
} from '@teambit/legacy/dist/consumer/component/sources/artifact-files';
import { VersionNotFound, ComponentNotFound } from '@teambit/legacy/dist/scope/exceptions';
import { VersionNotFound, ComponentNotFound, HeadNotFound } from '@teambit/legacy/dist/scope/exceptions';
import { AutoTagResult } from '@teambit/legacy/dist/scope/component-ops/auto-tag';
import DependenciesAspect, { DependenciesMain } from '@teambit/dependencies';
import { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';
Expand Down Expand Up @@ -769,7 +769,7 @@ there are matching among unmodified components thought. consider using --unmodif
: await this.scope.legacyScope.isPartOfMainHistory(dep.id);
} catch (err) {
if (throwForMissingObjects) throw err;
if (err instanceof VersionNotFound || err instanceof ComponentNotFound) {
if (err instanceof VersionNotFound || err instanceof ComponentNotFound || err instanceof HeadNotFound) {
missingDeps.push(dep.id);
return;
}
Expand Down

0 comments on commit 4377ca5

Please sign in to comment.