CircleCI-Public / circleci-cli

Use CircleCI from the command line
https://circleci-public.github.io/circleci-cli/
MIT License
405 stars 232 forks source link

executors section is generated incorrectly #315

Open Caledfwlch1 opened 5 years ago

Caledfwlch1 commented 5 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? I have a multi-file configuration CircleCI. When I run the command "circleci config pack config", I have the wrong "executors section".

Can you provide an example? .circleci ├── config │ ├── @config.yml │ └── jobs │ └── unit-tests.yml └── config.yml

config/@config.yml contains: version: 2.1 executors: cockroach-executor: docker:

then I run "circleci config pack config > config.yml" and get: config.yml contains: executors: cockroach-executor: docker: **- image: $DOCKER_IMAGE_GOLANG

What is the expected behavior? config.yml contains: executors: cockroach-executor: docker: **- image: $DOCKER_IMAGE_GOLANG

Which version of the CLI and OS are you using? Did this work in previous versions? CLI version: 0.1.5725+b0a23c0 OS version: Ubuntu 16.04

Please provide the output of circleci version and circleci diagnostic.

CircleCI CLI Diagnostics

Debugger mode: false Config found: /home/andy/.circleci/cli.yml API host: https://circleci.com API endpoint: graphql-unstable Error: please set a token with 'circleci setup' You can create a new personal API token here: https://circleci.com/account/api

If you have any questions, feel free to ping us at @CircleCI-Public/x-team.

royvandewater commented 5 years ago

Hi @Caledfwlch1 will you confirm that the issue you are experiencing is that the keys are not in the order that you expect? If so, the file should work with the keys in either order.

Caledfwlch1 commented 5 years ago

I want to run two containers: golang and cocroachdb. The first must start without parameters, and the second with parameters: "start ...". How can I do this? To which container will these parameters be taken?

marcomorain commented 4 years ago

cc @KunalJain

willbt commented 3 years ago

I'm having the same issue, I have an executor which uses 2 docker images and the postgres image requires the "auth" and "environment" sections to be set, but it mixes up the order and hierarchy. Is there an ETA for the fix?