Skip to content

Local file path is flagged as URL on Windows #388

@OlivierBrabanders

Description

@OlivierBrabanders

Summary

If I set the config variable customOrgMetadataTemplates to a hard-coded directory on Windows and try to create a Trigger/Apex class/... I am shown the following message: Only HTTPS protocol is supported for custom templates. Got "c:"

Steps To Reproduce:

  1. Download the repo locally in an SFDX project
  2. Open a terminal in the SFDX project
  3. Set customOrgMetadataTemplates to a Windows path i.e. sfdx config:set customOrgMetadataTemplates=C:\Users\OlivierBrabanders\Documents\Projects\SFDX\templates
  4. Execute any SFDX command for file creation with any name i.e. Apex trigger, name it "Test"

Expected result

I expect a file Test.trigger-meta.xml to be created.

Actual result

An error message is shown: Only HTTPS protocol is supported for custom templates. Got "c:"

Additional information

image

VS Code Version:
1.61.0

SFDX CLI Version:
sfdx-cli/7.122.1 win32-x64 node-v14.18.0

OS and version:

  • OS Name Microsoft Windows 10 Enterprise 2016 LTSB
  • Version 10.0.14393 Build 14393

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions