Git Product home page Git Product logo

Comments (9)

danielcompton avatar danielcompton commented on June 12, 2024 37

Should this be reopened now that 2.1 is out of preview? Will running 2.1 config jobs locally be supported in the future?

from circleci-cli.

zzak avatar zzak commented on June 12, 2024 17

Hello @brianmhunt,

Thanks for your reply.

I was able to process your config locally, after removing the funky character around line 43.

Could you try running the build locally after processing the config?

i.e.

$ circleci config process .circleci/config.yml > process.yml
# Run the build locally
$ circleci local execute -c process.yml --job deploy-master

This got pretty far for me, at least until make install failed.

Please let me know if you have any other trouble using the CLI! 🙇

from circleci-cli.

iancrowther avatar iancrowther commented on June 12, 2024 8
$ circleci config process .circleci/config.yml > process.yml
# Run the build locally
$ circleci local execute -c process.yml --job deploy-master

This should be the docs :-)

from circleci-cli.

brianmhunt avatar brianmhunt commented on June 12, 2024 2

Thanks @zzak! I got it all sorted! Lots of tinkering, but nothing out of the ordinary for a preview release. :)

from circleci-cli.

zzak avatar zzak commented on June 12, 2024 1

Hello @brianmhunt,

Thanks for your report!

The circleci switch command is for people with CLI verison 0.1.0 and less who wish to upgrade seamlessly to this CLI.

Could you send me your whole config, so that I can test it myself? Otherwise, our support staff would be happy to help assist with your config.

You've also found a doc bug! We renamed this command to circleci config process but missed some of the docs, sorry about that! I will fix it right away.

from circleci-cli.

brianmhunt avatar brianmhunt commented on June 12, 2024

I should mention that circleci config expand just prints the help, though it's mentioned in the config-preview-sdk/README.md:

Local builds do not support 2.1 configuration. There is a work-around, however: You can use the new circleci config expand command (requires upgrading your CLI to the new version) to process your configuration then save the result locally in your config.yml file and run it as a local build.

from circleci-cli.

zzak avatar zzak commented on June 12, 2024

@brianmhunt Ahh, regarding your original problem, I re-read this and understand now!

So we don't support 2.1+ config syntax for local builds.

You can use circleci config process to pre-process your config into a version that local builds can run (see circleci help config process for more information).

This command should warn if your config version is unsupported as of #76.

from circleci-cli.

brianmhunt avatar brianmhunt commented on June 12, 2024

Hi @zzak. Thanks for the great follow-up.

There've been a few errors that I diagnosed (once I found the Workflows panel), that now seem to be (or should shortly be) sorted.

Cheers

from circleci-cli.

khpeek avatar khpeek commented on June 12, 2024

+1 For @iancrowther's clarification: the command

circleci config process .circleci/config.yml

will just print the 'local-compatible' config.yml to the standard output; it needs to be redirected to a file that you can specify as the --config argument of circleci local execute. (I noticed in particular that version 2.1 was changed to version 2).

from circleci-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.