Mix deps.get - with Artifactory?

Artifactoy has had an open jira item since about 2016 to support this, that appears to now be on the 2021 roadmap.

Additionally, I was able to host elixir client libs in a generic artifactory repo by using a modified version of the mix hex.registry build that my much-more-experienced co-worker helped me with. It borrows from the source of mix hex.registry build but uses the existing metadata files and modifies them instead of re-writing them.

Pipeline:

  • create directory structure outlined by hexpm here
  • download meta data files from the artifactory repo (names, versions, packages/*)
  • add new .tar files to tarballs/
  • use our custom mix task (containerized in a CI pipeline) to update the metadata files
  • upload new .tar files and updated metadata files
4 Likes