# Specify version of a dependency

**URL:** <https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719>\
**Category:** Step Dev\
**Created:** [February 11, 2021, 12:01pm UTC](https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719 "2021-02-11T12:01:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kacper.raczy](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kacper.raczy](https://discuss.bitrise.io/u/kacper.raczy)\
**Post date:** [February 11, 2021, 12:01pm UTC](https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719/1 "2021-02-11T12:01:06Z")

</div>

Is it possible to specify version of a dependency in `step.yml`? One of my go libraries requires specific version of library from apt repository (latest version is not supported).

---

<div class="post-metadata">

**Author:** ![oliver.falvai](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/oliver.falvai/32/5030_2.png) [@oliver.falvai](https://discuss.bitrise.io/u/oliver.falvai)\
**Post date:** [February 24, 2021, 3:27pm UTC](https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719/2 "2021-02-24T15:27:47Z")

</div>

Hi @kacper.raczy,

Requiring a specific version is not supported currently. Would it make sense to convert that dependency to [check\_only](https://devcenter.bitrise.io/contributors/create-your-own-step/#submodules-and-step-dependencies), and use a script step to install the required version, before executing your custom step?

---

<div class="post-metadata">

**Author:** ![kacper.raczy](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kacper.raczy](https://discuss.bitrise.io/u/kacper.raczy)\
**Post date:** [February 25, 2021, 3:06pm UTC](https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719/3 "2021-02-25T15:06:55Z")

</div>

Hi @oliver.falvai, thank you for answer. Could you elaborate? Is there possibility to configure `step.yml` to execute some script beforehand, or should I create something like `step.sh`, where I’d install required dependencies and run my custom step using `go run`?

---

<div class="post-metadata">

**Author:** ![oliver.falvai](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/oliver.falvai/32/5030_2.png) [@oliver.falvai](https://discuss.bitrise.io/u/oliver.falvai)\
**Post date:** [February 26, 2021, 7:59am UTC](https://discuss.bitrise.io/t/specify-version-of-a-dependency/15719/4 "2021-02-26T07:59:49Z")

</div>

Hey @kacper.raczy, my idea is to use a simple script step in your workflow _before_ your custom step. This way the virtual machine will have the specific library installed by the time the custom step starts.
