Skip to content

Commit

Permalink
Merge pull request #978 from salesforcecli/sm/avoid-loading-project-f…
Browse files Browse the repository at this point in the history
…or-manifest

fix: avoid loading project for manifest
  • Loading branch information
shetzel authored Apr 19, 2024
2 parents 4e0a34d + c68e203 commit a2c66e6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/project/retrieve/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
flags,
format
);
if (Boolean(flags.manifest) || Boolean(flags.metadata)) {
if (format === 'source' && (Boolean(flags.manifest) || Boolean(flags.metadata))) {
const access = new RegistryAccess(undefined, SfProject.getInstance()?.getPath());
if (wantsToRetrieveCustomFields(componentSetFromNonDeletes, access)) {
this.warn(messages.getMessage('wantsToRetrieveCustomFields'));
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('retrieve mdapi format without project', () => {
`project:retrieve:start -o ${session.hubOrg.username} --target-metadata-dir ${outputDir} -x ${xmlPath} --json`,
{
ensureExitCode: 0,
cwd: session.dir,
}
).jsonOutput?.result;
// hub should have a connected app!
Expand Down
File renamed without changes.

0 comments on commit a2c66e6

Please sign in to comment.