Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local file path is flagged as URL on Windows #388

Open
OlivierBrabanders opened this issue Oct 12, 2021 · 0 comments
Open

Local file path is flagged as URL on Windows #388

OlivierBrabanders opened this issue Oct 12, 2021 · 0 comments

Comments

@OlivierBrabanders
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant