Skip to content

Commit

Permalink
fix(patch): ensure path to artifact directory is correct (#27)
Browse files Browse the repository at this point in the history
Repo patch is broken due to incorrect path used by the changes to support multiple release defn
  • Loading branch information
azlam-abdulsalam committed Mar 1, 2024
1 parent 57ad8d0 commit 489fe3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sfp-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@flxblio/sfp",
"description": "sfp is a CLI tool to help you manage your Salesforce projects in an artifact centric model",
"version": "36.0.9",
"version": "36.0.10",
"license": "MIT",
"author": "flxblio",
"release": "February 24",
Expand Down
8 changes: 8 additions & 0 deletions packages/sfp-cli/src/commands/repo/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ export default class Patch extends SfpCommand {
'artifacts',
releaseDefinition.release.replace(/[/\\?%*:|"<>]/g, '-')
);
if(releaseDefinition.releaseConfigName)
{
revisedArtifactDirectory = path.join(
'artifacts',
releaseDefinition.releaseConfigName.replace(/[/\\?%*:|"<>]/g, '-'),
releaseDefinition.release.replace(/[/\\?%*:|"<>]/g, '-')
);
}

let artifacts = ArtifactFetcher.fetchArtifacts(revisedArtifactDirectory, null, logger);

Expand Down

0 comments on commit 489fe3b

Please sign in to comment.