Skip to content

Commit

Permalink
fix: when resolving dependencies the branch attribute should be prefe…
Browse files Browse the repository at this point in the history
…rred

when resolving package version dependencies the branch attribute of the dependency should
be used to select the package version, not the branch name in parameter
unless dependency doesn't specify a branch.
  • Loading branch information
David-Polehonski committed Jun 6, 2023
1 parent cafec41 commit e94e753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package/packageVersionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class PackageVersionCreate {
const buildNumber = versionNumber.build;

// use the dependency.branch if present otherwise use the branch of the version being created
const branch = dependency.branch === '' ? dependency.branch : this.options.branch;
const branch = dependency.branch === '' ? this.options.branch : dependency.branch;
const branchString = !branch || branch === '' ? 'null' : `'${branch}'`;

// resolve a build number keyword to an actual number, if needed
Expand Down

0 comments on commit e94e753

Please sign in to comment.