Skip to content

Commit

Permalink
fix: use projectDir when getting API version (#1307)
Browse files Browse the repository at this point in the history
* fix: use `projectDir` when getting API version

Pass `this.projectDirectory` to `SfProject.resolve` when resolving
the manifest API version from `sfdx-project`.

* test: update snapshots

* fix: bump sfdx-core

* chore: dedupe lockfile
  • Loading branch information
cristiand391 authored May 10, 2024
1 parent 156ae86 commit a79023a
Show file tree
Hide file tree
Showing 25 changed files with 438 additions and 1,534 deletions.
1,924 changes: 414 additions & 1,510 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/collections/componentSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ export class ComponentSet extends LazyCollection<MetadataComponent> {

if (!version) {
try {
const project = await SfProject.resolve();
const project = await SfProject.resolve(this.projectDirectory);
const projectConfig = await project.resolveProjectConfig();
version = projectConfig?.sourceApiVersion as string;
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
<members>TestSkill</members>
<name>Skill</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<members>CustomLabels</members>
<name>CustomLabels</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
<members>Property__c.All</members>
<name>ListView</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
<members>es</members>
<name>Translations</name>
</types>
<version>60.0</version>
<version>51.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<members>RedClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<members>OneClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<members>RedClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<members>RedClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<members>OneClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<members>RedClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<members>TwoClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<members>RedClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<members>TwoClass</members>
<name>ApexClass</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
<members>Capricorn_Coffee_B</members>
<name>Network</name>
</types>
<version>60.0</version>
<version>57.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<members>LogEntryArchive__b.LogEntryArchiveIndex</members>
<name>Index</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<members>unfiled$public/Top_level_report_cZJ</members>
<name>Report</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<members>Territory_1</members>
<name>Territory</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@
<members>Territory_1</members>
<name>Territory</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<members>sample_data_properties</members>
<name>StaticResource</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<members>State</members>
<name>Territory2Type</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
<members>Account.task_1</members>
<name>WorkflowTask</name>
</types>
<version>60.0</version>
<version>52.0</version>
</Package>
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
<members>Contact-en_US</members>
<name>CustomObjectTranslation</name>
</types>
<version>60.0</version>
<version>59.0</version>
</Package>

0 comments on commit a79023a

Please sign in to comment.