Private orb not working

Hello,

We want to test a small change to path-filtering orb.

We cloned the repository and decided to go with a private orb. After making a small change, we trying to create the pack.yaml and publish the orb, but got the following error when trying to publish:

$ circleci --skip-update-check orb publish pack.yaml org/path-filtering@dev:second

Error: Error calling command: 'generate-config'
Unclosed '<<' tag in string: '<<include(scripts/generate-config.sh)>>'
('<<' must be escaped as '\<<' in config v2.1+)
Error calling command: 'set-parameters'
Unclosed '<<' tag in string: '<<include(scripts/create-parameters.py)>>'
('<<' must be escaped as '\<<' in config v2.1+)
Error calling job: 'filter'
Error calling command: 'set-parameters'
Unclosed '<<' tag in string: '<<include(scripts/create-parameters.py)>>'
('<<' must be escaped as '\<<' in config v2.1+)

After making the proposed changes the orb gets published as expected, but when actually using the orb I see the following error on circleCI:

#!/usr/bin/env python3
<<include(scripts/create-parameters.py)>>
  File "<string>", line 1
    <<include(scripts/create-parameters.py)>>
    ^
SyntaxError: invalid syntax

Exited with code exit status 1
CircleCI received exit code 1

Any ideas?

Can you share what changes you made?

Hello, the problem seems to be related to the command used to generate pack.yaml. Using the following command fixes the problem:

circleci config pack src

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.