Skip to content

Allow pulling build scope of artifacts which are not cached locally

Tristan Van Berkom requested to merge tristan/fix-recursive-artifact-pull into master

In any case that the user has requested artifacts be pulled, and that artifact targets have been specified, pre-emptively pull the target artifact metadata so that the operation can complete coherently.

Specifically, this fixes:

  • bst artifact pull --deps build <artifact name>
  • bst artifact checkout --deps build --pull <artifact name>

In these cases, we cannot know the build dependencies of the artifact if we do not at least try to obtain the toplevel target artfiact(s) first, so we instate a policy to initially download metadata.

Currently this unfortunately downloads the entire artifact, but should be optimized later on to download only the required metadata, added FIXME comment around here.

Edited by Tristan Van Berkom

Merge request reports