Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

sfp releasedefinition:generate does not change or overwrite an existing file #1449

@mpaul1

Description

@mpaul1

Describe the bug
sfp releasedefinition:generate does not change/overwrite an existing file. This may be by design, if so it would be nice to clarify that in the instructions, --help, etc...

To Reproduce
Steps to reproduce the behavior:
Running this command to generate a release definition file: ./release-definitions/Test52.yml in the "master" branch does not update or overwrite the existing file, aka if ./release-definitions/Test52.yml already exists.

sfp releasedefinition:generate -d release-definitions -n Test52 -c aa9b2b1fdc6fddc63cb531177350a4266da83eae -f ./config/release-config.yml -b master --loglevel=TRACE

The trace outputs to the consol makes it look like the commit was completed, but the changes never show up in the branch/git repository:
Checking out branch master
Committed File /tmp/tmp-949-fjhX5gohLslp/release-definitions/Test52.yml
Pushing master

Expected behavior
I would expect that if the contents of the ./release-definitions/Test52.yml file generated were different than the contents of the existing ./release-definitions/Test52.yml file in the branch, the existing file would be updated/overwritten with the generated changes.

Platform Details (please complete the following information):

  • OS: Linux
  • SFP Version: @dxatscale/sfpowerscripts/25.5.3 linux-x64 node-v18.19.0
  • Salesforce CLI(sfdx cli) Version: @salesforce/cli/2.21.8 linux-x64 node-v18.19.0
  • CI Platform: Azure Devops

Starting: Initialize job
Agent name: 'linux-release-agent-548dfbd689-2mjl7'
Agent machine name: 'linux-release-agent-548dfbd689-2mjl7'
Current agent version: '2.181.2'
Prepare build directory.
Set build variables.
Download all required tasks.
Downloading task: NodeTool (0.179.1)
Downloading task: CmdLine (2.178.0)
Downloading task: PowerShell (2.180.1)
Checking job knob settings.
Finished checking job knob settings.
Start tracking orphan processes.
Finishing: Initialize job

Metadata

Metadata

Assignees

No one assigned

    Labels

    analysisTo be decided on how to solution/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions