bitrise-io / bitrise

Bitrise runner CLI - run your automations on your Mac or Linux machine -
https://www.bitrise.io/cli
MIT License
840 stars 131 forks source link

Print a more precise error when the Step ID exists in the collection but the version does not. #480

Open viktorbenei opened 7 years ago

viktorbenei commented 7 years ago

Example error:

+------------------------------------------------------------------------------+
| (2) install-react-native@1.0.3                                               |
+------------------------------------------------------------------------------+
| id: install-react-native                                                     |
| version: 1.0.3                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2017-03-29T18:41:36-07:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
ERRO[18:41:36] Step (install-react-native@1.0.3) failed, error: StepmanJSONStepLibStepInfo failed, err: Error: exit status 1, details: 2017/03/29 18:41:36 Command failed, error: Failed to read Step information, error: Collection doesn't contain step (id:install-react-native) (version:1.0.3)

|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | install-react-native@1.0.3 (exit code: 1)                     | 3.77 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: Not provided                                                  |
| Source: Not provided                                                         |
+---+---------------------------------------------------------------+----------+

It's not clear what the actual error is, which is that the step does exist in the steplib, but there's no version 1.0.3

jonathansouza-hotmart commented 3 years ago

I am experiencing this problem, have you an estimate to merge this fix?

When I use the UI to select version of step, when I select version 2.X.X, on bitrise.yml saves 2

And 2 is not a valid version of step cache-push for example.

Then I am facing the following error:

ERRO[14:44:03] Step (cache-push@2) failed: StepmanJSONStepLibStepInfo failed, err: Error: exit status 1, details: 2021/03/31 14:44:03 Command failed, error: Failed to read Step information, error: Collection doesn't contain step (cache-push) with version: 2

Captura de Tela 2021-03-31 às 14 48 51

Captura de Tela 2021-03-31 às 14 48 22 Captura de Tela 2021-03-31 às 14 48 09
Roland-Bak commented 3 years ago

Hello there @jonathansouza-hotmart 👋

I don't think there is a concrete merge that would help the issue you are facing, could you send us a ticket on https://support.bitrise.io/? What we would need is the build URL and Support Access enabled for the build (https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/ ) 🙂