-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error: unknown command "env" for "circleci" #117
Comments
Could you provide more more details? Any step previous to that or specific configuration you have made. |
@marboledacci let me try to recreate the issue with a full |
Here's a full version: 2.1
orbs:
browser-tools: circleci/browser-tools@1
jobs:
test_job:
docker:
- image: cimg/node:18.20-browsers
steps:
- run:
command: |
circleci --help
circleci version
- browser-tools/install-chrome
workflows:
pull_request:
jobs:
- test_job:
filters:
branches:
ignore: [main] The "compiled source" says: The output is: The CLI tool to be used in CircleCI.
Usage:
circleci [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
config Validate and update the circleCI configuration file
execute Run a job in a container on the local machine
help Help about any command
task Manage tasks
tests Collect and split tests so they may be run in parallel.
version Output version info
Flags:
-h, --help help for circleci
--verbose enable verbose logging output
Use "circleci [command] --help" for more information about a command.
INFO[0000] Clean exit without errors
Build Agent version: 1.0.213497-server-4.2-0f31974a
Built: 2023-12-14T20:14:42+0000
CircleCI received exit code 0
---
Error: unknown command "env" for "circleci"
Run 'circleci --help' for usage.
ERRO[0000] Exit with status 1 due to generic error error="unknown command \"env\" for \"circleci\""
Exited with code exit status 1
CircleCI received exit code 1
@marboledacci based on these findings:
|
Are you using a self-hosted runner? |
Yes, it's self hosted. What agent version ( |
@Elte156 Your guessing is right, the problem is your agent version. The env command was added in server 4.3 and you are running server 4.2. Updating to server 4.3 should be enough to fix this. |
Orb version
1.4.9
What happened
Using sample circle ci config:
Results in:
Expected behavior
The text was updated successfully, but these errors were encountered: