Bitrise step dependency version



I’m creating my first bitrise step.
I need a dependency which I declare in the step.yml file under deps.
But If I would like to give the user the option to enter a custom version or ‘latest’ of the dependency?
Is there some best practice to do this?
Or should I just remove it from the deps and install it myself in a shell command that afterwards runs my go command?

Friendly regards,



Hi @seppe_r,
Nice! We are really happy to hear that you’re working on creating your first step! :wink: If the latest version of the deps would be enough and they are available via apt-get and/or brew you can simply add it in the deps section and the CLI will handle everything for you.
For using custom versions of a dependency according to the user’s preferences the solution would be to use a shell command as you mentioned to download and install the desired version of the tool. Let me know if you’d have any further questions! :slightly_smiling_face:
Best regards,


Ok thanks :smiley:

So the deps always updates to the latest version even if already installed?

Is there any sort of example to run the which runs the go command?

I can see but is all the creation of the folders necessary if the is in the same repo as the main.go ? :thinking:

Friendly regards,




I suggest you to use this post, it is awesome and really handy:


No, if the tool is already installed it won’t update it. See:

If you declare deps for a given Step , the Bitrise CLI will check if that tool is installed, and will install it for you if required.


This method is the preferred way of handling (step) dependencies, as the Bitrise CLI will not (re)install the specified tool(s) if it’s already available.