Skip to content

Commit

Permalink
fix(validate): fix incorrect condition while packages are overriden
Browse files Browse the repository at this point in the history
Diff package is overriden to source incorrectly during validation
  • Loading branch information
sfopsbot committed Dec 19, 2023
1 parent 7a76680 commit 5883ab6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sfp-cli/src/impl/validate/ValidateImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,10 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook {
}
else {
if (!props.disableSourcePackageOverride) {
if (ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Data || ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Diff)
if(ProjectConfig.getPackageType(projectConfig, pkg) == PackageType.Unlocked)
{
overridedPackages[pkg] = PackageType.Source
}
}
}
}
}
Expand Down

0 comments on commit 5883ab6

Please sign in to comment.