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

Unpackaged metadata not provided to sfdx build in newest sfpowerscripts version #1202

Closed

Description

@petter-eikeland

Describe the bug
Newest sfpowerscripts version gives the following error upon Orchestrator Build: Un-packaged metadata directory unpackagedMetadata was specified but does not exist. I see that support of this option was added as a result of this issue.

To Reproduce
Steps to reproduce the behavior:

  1. Create an Unlocked Package, test-package, under the src directory and add it to the sfdx-project.json and include an Account field, testField__c
  2. Add another directory, src/unpackaged, and add another Account field, testField2__c
  3. Add the unpackagedMetadata option as below:
"unpackagedMetadata": {
    "path":"src/unpackaged"
},
  1. Create a new version of test-package using sfdx sfpowerscripts:orchestrator:build -v devhub --branch master --diffcheck --buildnumber $(Build.BuildId) -f config/project-scratch-def.json & the latest version of sfpowerscripts using container: ghcr.io/dxatscale/sfpowerscripts:latest

Expected behavior
A new package version is successfully created

Actual behavior
sfdx throws the following error: Un-packaged metadata directory unpackagedMetadata was specified but does not exist.

Screenshots
Screenshot 2023-01-24 at 10 11 33

Platform Details (please complete the following information):

  • OS: Linux
  • Version: Ubuntu Latest
  • Salesforce CLI(sfdx cli) Version:
    • sfpowerscripts: latest (20.2.11)
    • sfdx: 7.179.0
  • CI Platform: Azure DevOps

Additional context
If downgrading to sfpowerscripts version: 19.7.3 using container: ghcr.io/dxatscale/sfpowerscripts:19.7.3-3140166080 then the orchestrator:build works successfully as expected

Activity

  1. added
    analysis
    on Jan 24, 2023
  2. azlam-abdulsalam commented on Jan 24, 2023

    @azlam-abdulsalam
    Contributor

    Thanks @petter-eikeland for investigating this. Will address in Jan 23 release

  3. added
    bug
    and removed
    analysis
    on Jan 24, 2023
  4. added a commit that references this issue on Jan 25, 2023
    881a54e
  5. azlam-abdulsalam commented on Jan 25, 2023

    @azlam-abdulsalam
    Contributor

    ixed in Jan23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions