CircleCI-Archived / Orb-Project-Template

A starter template for orb projects. Build, test, and publish orbs automatically on CircleCI. Use the Orb Development Kit to get started.
https://circleci.com/docs/2.0/orb-author/#orb-development-kit
MIT License
24 stars 34 forks source link

CircleCI CLI validation error with shell script include #11

Closed dijitali closed 3 years ago

dijitali commented 3 years ago

Orb version:

1.1.4

What happened:

Packing and validating this repo gives an error referencing the shell script:

$ circleci config pack src | circleci orb validate -

Error: Error calling command: 'greet'
Unclosed '<<' tag in string: '<<include(scripts/greet.sh)>>'
('<<' must be escaped as '\<<' in config v2.1+)
Error calling job: 'hello'
Error calling command: 'greet'
Unclosed '<<' tag in string: '<<include(scripts/greet.sh)>>'
('<<' must be escaped as '\<<' in config v2.1+)

Expected behavior:

The orb should validate successfully.

Additional Information:

$ circleci version

0.1.11458+44f80c2 (homebrew)
dijitali commented 3 years ago

My bad, I should be using the new circleci orb pack src command from https://github.com/CircleCI-Public/circleci-cli/pull/432, not config.

This works fine:

$ circleci orb pack src | circleci orb validate -
Orb input is valid.