Overview
CircleCI users utilizing Orbs may encounter a scenario where an orb does not automatically update to the latest patch version. This article explains the expected behavior of orb versioning, particularly when specifying a version like circleci/node:5.2
, and clarifies the process for ensuring the executor pulls the latest patch version.
Prerequisites
- A CircleCI account with a project set up.
- An orb that you wish to use in your project.
Instructions
When specifying an orb version in your CircleCI configuration, using the format namespace/orb@major.minor
should theoretically allow the executor to pull in all subsequent patch updates for that minor version. For example:
orbs:
node: circleci/node:5.2
This configuration should resolve to the latest patch version of node
within the 5.2
minor version range.
Solution
If you notice that your CircleCI Pipeline is not pulling the latest patch version of an orb, it's important to understand that a rerun of a workflow will not automatically pick up a new orb version. Instead, a new pipeline must be triggered to fetch the latest version. This can be done by pushing a new commit or manually triggering a new pipeline.
If an orb is under heavy development and frequent updates are expected, it may be inconvenient to update the orb reference in multiple repositories. To mitigate this, ensure that your workflow is set up to trigger new pipelines upon updates, which will allow CircleCI to pull the new orb version.
Comments
Article is closed for comments.