Bitrise CLI fails to load steps

bitrise-cli
#1

Description of the issue

Hello,
I get the following error when using bitrise run xxx from my local machine.
And it seems like it fails to load other step packages as well.

can't load package: package github.com/bitrise-io/steps-cocoapods-install: cannot find package "github.com/bitrise-io/steps-cocoapods-install" in any of:
	/Users/cocomode18/.anyenv/envs/goenv/versions/1.12.5/src/github.com/bitrise-io/steps-cocoapods-install (from $GOROOT)
	/Users/cocomode18/go/1.12.5/src/github.com/bitrise-io/steps-cocoapods-install (from $GOPATH)
ERRO[13:52:54] Step (cocoapods-install@1.7.2) failed, error: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 1

$ bitrise setup successes and I’ve also tried updating dependent tools / languages but nothing changes.
Also, the same steps (bitrise.yml) configured on bitrise.io works fine.

Environment:

  • MacOS Mojave v10.14.4
  • Bitrise CLI v1.29.0
  • homebrew (use to download bitrise cli) v2.1.2
  • go lang v1.12.5 (downloaded with goenv)
  • envman v2.2.2
  • stepman v0.11.3

Build log

bash-3.2$ bitrise setup

  ██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
  ██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
  ██████╔╝██║   ██║   ██████╔╝██║███████╗█████╗
  ██╔══██╗██║   ██║   ██╔══██╗██║╚════██║██╔══╝
  ██████╔╝██║   ██║   ██║  ██║██║███████║███████╗
  ╚═════╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝

  version: 1.29.0

Setup
Full setup: false
Clean setup: false
Detected OS: darwin

Checking Bitrise Core tools...
[OK] envman (2.2.2): /Users/cocomode18/.bitrise/tools/envman
[OK] stepman (0.11.3): /Users/cocomode18/.bitrise/tools/stepman

Doing OS X specific setup
Checking required tools...
[OK] Homebrew 2.1.2
Homebrew/homebrew-core (git revision f0817; last commit 2019-05-14)
Homebrew/homebrew-cask (git revision d4f42; last commit 2019-05-15): /usr/local/bin/brew
[OK] xcodebuild (Xcode 10.2.1 | Build version 10E1001): /usr/bin/xcodebuild
[OK] active Xcode (Command Line Tools) path (xcode-select --print-path): /Applications/Xcode.app/Contents/Developer

Checking Bitrise Plugins...
[OK] Plugin init (1.1.1): /Users/cocomode18/.bitrise/plugins/init
[OK] Plugin step (0.9.9): /Users/cocomode18/.bitrise/plugins/step
[OK] Plugin workflow-editor (1.1.52): /Users/cocomode18/.bitrise/plugins/workflow-editor
[OK] Plugin analytics (0.10.1): /Users/cocomode18/.bitrise/plugins/analytics

Checking Bitrise Toolkits...
[OK] go (1.12.5): /Users/cocomode18/.anyenv/envs/goenv/shims/go
[OK] bash (GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)): /bin/bash

All the required tools are installed! We're ready to rock!!

To start using bitrise:
* cd into your project's directory (if you're not there already)
* call: bitrise init
* follow the guide

That's all :)

bash-3.2$ bitrise run primary

  ██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
  ██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
  ██████╔╝██║   ██║   ██████╔╝██║███████╗█████╗
  ██╔══██╗██║   ██║   ██╔══██╗██║╚════██║██╔══╝
  ██████╔╝██║   ██║   ██║  ██║██║███████║███████╗
  ╚═════╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝

  version: 1.29.0

INFO[14:25:37] bitrise runs in Secret Filtering mode 
INFO[14:25:37] Running workflows: _test --> primary 

Switching to workflow: _test

+------------------------------------------------------------------------------+
| (0) activate-ssh-key@4.0.3                                                   |
+------------------------------------------------------------------------------+
| id: activate-ssh-key                                                         |
| version: 4.0.3                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:38+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:38] The step's (activate-ssh-key@4.0.3) Run-If expression evaluated to false - skipping 
INFO[14:25:38] The Run-If expression was: {{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}} 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | activate-ssh-key@4.0.3                                        | 0.49 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (1) git-clone@4.0.14                                                         |
+------------------------------------------------------------------------------+
| id: git-clone                                                                |
| version: 4.0.14                                                              |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:38+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:38] The step's (git-clone@4.0.14) Run-If expression evaluated to false - skipping 
INFO[14:25:38] The Run-If expression was: .IsCI  
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | git-clone@4.0.14                                              | 0.51 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (2) cache-pull@2.0.1                                                         |
+------------------------------------------------------------------------------+
| id: cache-pull                                                               |
| version: 2.0.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:39+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:39] The step's (cache-pull@2.0.1) Run-If expression evaluated to false - skipping 
INFO[14:25:39] The Run-If expression was: .IsCI  
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | cache-pull@2.0.1                                              | 0.49 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (3) certificate-and-profile-installer@1.10.1                                 |
+------------------------------------------------------------------------------+
| id: certificate-and-profile-installer                                        |
| version: 1.10.1                                                              |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:40+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:40] The step's (certificate-and-profile-installer@1.10.1) Run-If expression evaluated to false - skipping 
INFO[14:25:40] The Run-If expression was: .IsCI  
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | certificate-and-profile-installer@1.10.1                      | 0.59 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (4) cocoapods-install@1.7.2                                                  |
+------------------------------------------------------------------------------+
| id: cocoapods-install                                                        |
| version: 1.7.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:40+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[14:25:40]  * [OK] Step dependency (go) installed, available. 
can't load package: package github.com/bitrise-io/steps-cocoapods-install: cannot find package "github.com/bitrise-io/steps-cocoapods-install" in any of:
	/Users/cocomode18/.anyenv/envs/goenv/versions/1.12.5/src/github.com/bitrise-io/steps-cocoapods-install (from $GOROOT)
	/Users/cocomode18/go/1.12.5/src/github.com/bitrise-io/steps-cocoapods-install (from $GOPATH)
ERRO[14:25:40] Step (cocoapods-install@1.7.2) failed, error: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 1 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | cocoapods-install@1.7.2 (exit code: 1)                        | 0.88 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-cocoapods-install/issues  |
| Source: https://github.com/bitrise-io/steps-cocoapods-install                |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (5) xcode-test@2.3.1                                                         |
+------------------------------------------------------------------------------+
| id: xcode-test                                                               |
| version: 2.3.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:41+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:41] A previous step failed, and this step (xcode-test@2.3.1) was not marked as IsAlwaysRun, skipped 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | xcode-test@2.3.1                                              | 0.70 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (6) swiftlint@0.4.2                                                          |
+------------------------------------------------------------------------------+
| id: swiftlint                                                                |
| version: 0.4.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2019-05-15T14:25:42+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:42] A previous step failed, and this step (swiftlint@0.4.2) was not marked as IsAlwaysRun, skipped 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | swiftlint@0.4.2                                               | 0.48 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (7) deploy-to-bitrise-io@1.3.19                                              |
+------------------------------------------------------------------------------+
| id: deploy-to-bitrise-io                                                     |
| version: 1.3.19                                                              |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:42+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:42] The step's (deploy-to-bitrise-io@1.3.19) Run-If expression evaluated to false - skipping 
INFO[14:25:42] The Run-If expression was: .IsCI  
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | deploy-to-bitrise-io@1.3.19                                   | 0.55 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (8) cache-push@2.1.1                                                         |
+------------------------------------------------------------------------------+
| id: cache-push                                                               |
| version: 2.1.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:43+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
WARN[14:25:43] The step's (cache-push@2.1.1) Run-If expression evaluated to false - skipping 
INFO[14:25:43] The Run-If expression was: .IsCI | and (not .IsPR) 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| - | cache-push@2.1.1                                              | 0.51 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼


Switching to workflow: primary

+------------------------------------------------------------------------------+
| (0) slack@3.1.2                                                              |
+------------------------------------------------------------------------------+
| id: slack                                                                    |
| version: 3.1.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-05-15T14:25:43+09:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
can't load package: package github.com/bitrise-io/steps-slack-message: cannot find package "github.com/bitrise-io/steps-slack-message" in any of:
	/Users/cocomode18/.anyenv/envs/goenv/versions/1.12.5/src/github.com/bitrise-io/steps-slack-message (from $GOROOT)
	/Users/cocomode18/go/1.12.5/src/github.com/bitrise-io/steps-slack-message (from $GOPATH)
WARN[14:25:44] Step (slack@3.1.2) failed, but was marked as skippable, error: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 1 
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ! | slack@3.1.2 (exit code: 1)                                    | 1.04 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-slack-message/issues      |
| Source: https://github.com/bitrise-io/steps-slack-message                    |
+---+---------------------------------------------------------------+----------+


+------------------------------------------------------------------------------+
|                               bitrise summary                                |
+---+---------------------------------------------------------------+----------+
|   | title                                                         | time (s) |
+---+---------------------------------------------------------------+----------+
| - | activate-ssh-key@4.0.3                                        | 0.49 sec |
+---+---------------------------------------------------------------+----------+
| - | git-clone@4.0.14                                              | 0.51 sec |
+---+---------------------------------------------------------------+----------+
| - | cache-pull@2.0.1                                              | 0.49 sec |
+---+---------------------------------------------------------------+----------+
| - | certificate-and-profile-installer@1.10.1                      | 0.59 sec |
+---+---------------------------------------------------------------+----------+
| x | cocoapods-install@1.7.2 (exit code: 1)                        | 0.88 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-cocoapods-install/issues  |
| Source: https://github.com/bitrise-io/steps-cocoapods-install                |
+---+---------------------------------------------------------------+----------+
| - | xcode-test@2.3.1                                              | 0.70 sec |
+---+---------------------------------------------------------------+----------+
| - | swiftlint@0.4.2                                               | 0.48 sec |
+---+---------------------------------------------------------------+----------+
| - | deploy-to-bitrise-io@1.3.19                                   | 0.55 sec |
+---+---------------------------------------------------------------+----------+
| - | cache-push@2.1.1                                              | 0.51 sec |
+---+---------------------------------------------------------------+----------+
| ! | slack@3.1.2 (exit code: 1)                                    | 1.04 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-slack-message/issues      |
| Source: https://github.com/bitrise-io/steps-slack-message                    |
+---+---------------------------------------------------------------+----------+
| Total runtime: 6.23 sec                                                      |
+------------------------------------------------------------------------------+


Submitting anonymized usage informations...
For more information visit:
https://github.com/bitrise-io/bitrise-plugins-analytics/blob/master/README.md
0 Likes

#2

Hi @cocomode18!

We are aware of this issue and the fix is on the way! Thanks for your report and understanding in the while! :slight_smile:

1 Like