Open legopin opened 3 years ago
@cayennes Could someone take a look at this?
Issue persists in circleci version 0.1.11508+10b61a8 (homebrew)
I think I will take a look at the validate command, 0.1.15224+605a617 (homebrew)
is getting the same issue
Meta:
CircleCI CLI Version: 0.1.10583+79ecb9b (homebrew)
Operating System: macOS 10.15.7
CircleCI CLI Diagnostic:
Current behavior:
When executing
circlecli validate config
on a config file using pipeline parametes, the CLI throws error:Type error for argument PIPELINE_NUMBER: expected type: integer, actual value: "1" (type string)
Expected behavior:
The default pipeline params provided for validation should match actual data. Pipeline.numbers should be type integer
on cloud server execution, pipeline.number is integer![Screen Shot 2020-10-06 at 5 17 58 PM](https://user-images.githubusercontent.com/15863509/95183729-f514d880-07f8-11eb-8592-9bc45c798821.png)
On documentation it is also recorded number is an integer https://circleci.com/docs/2.0/pipeline-variables/#pipeline-values![Screen Shot 2020-10-06 at 5 05 36 PM](https://user-images.githubusercontent.com/15863509/95183823-1970b500-07f9-11eb-9c5f-76ddde4314cb.png)
When did this begin / Was this previously working?:
Not previously working
Additional Information:
Found the location of the default value, but since I'm unfamiliar with GO, not sure how to change this string map https://github.com/CircleCI-Public/circleci-cli/blob/797fc6533c09060e0cbe1b7ae08054ed487a4524/pipeline/pipeline.go#L31-L40