Specify version of a dependency

#1

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).

0 Likes

#2

Hi @kacper.raczy,

Requiring a specific version is not supported currently. Would it make sense to convert that dependency to check_only, and use a script step to install the required version, before executing your custom step?

0 Likes

#3

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?

0 Likes

#4

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.

0 Likes