{"id":16111117,"url":"https://github.com/mjpitz/bin-vendor","last_synced_at":"2026-01-30T10:36:31.297Z","repository":{"id":64303373,"uuid":"338367541","full_name":"mjpitz/bin-vendor","owner":"mjpitz","description":"A very easy way to vendor binary tools your projects use.","archived":false,"fork":false,"pushed_at":"2021-04-17T02:36:26.000Z","size":66,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T16:53:58.115Z","etag":null,"topics":["binary","dependencies","tools-deps","version-manager"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjpitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-12T16:10:40.000Z","updated_at":"2021-12-02T15:19:27.000Z","dependencies_parsed_at":"2023-01-15T10:01:06.031Z","dependency_job_id":null,"html_url":"https://github.com/mjpitz/bin-vendor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mjpitz/bin-vendor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Fbin-vendor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Fbin-vendor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Fbin-vendor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Fbin-vendor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjpitz","download_url":"https://codeload.github.com/mjpitz/bin-vendor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Fbin-vendor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260891141,"owners_count":23077910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary","dependencies","tools-deps","version-manager"],"created_at":"2024-10-09T19:40:24.607Z","updated_at":"2026-01-30T10:36:31.257Z","avatar_url":"https://github.com/mjpitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bin-vendor\n\nA no-frills way to vendor tools your projects use.\nStop fighting conflicting tool versions today.\n\n* [Status](#status)\n* [Getting Started](#getting-started)\n  * [Installing](#installing)\n  * [Using the GitHub Action](#using-the-github-action)\n  * [Using in a Makefile](#using-in-a-makefile)\n* [bin.yaml](#binyaml)\n  * [Variables](#variables)\n  * [Replacements](#replacements)\n\n## Status\n\n[![Release](https://img.shields.io/github/release/mjpitz/bin-vendor.svg?style=for-the-badge)](https://github.com/mjpitz/bin-vendor/releases/latest)\n[![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge)](/LICENSE)\n\n## Getting started\n\nUsing a `bin.yaml` file, projects can communicate their required tooling and associated versions.\n`bin-vendor` then downloads the assets and unpacks them into a local `bin` directory.\n\n### Installing\n\nThe easiest way to get started is with curl.\nAlternatively, just pop over to the releases section.\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/mjpitz/bin-vendor/main/install.sh | VERSION=v0.0.5 bash -s -\n```\n\n### Using the GitHub Action\n\nThe GitHub action makes working with bin-vendor a completely transparent process.\nOnce setup, it vendors your project's tooling and prepends the system path with the projects bin dir.\nThe block of yaml below shows how you can easily add bin-vendor to your build process and configure it.\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n\n      - name: Vendor tooling\n        uses: mjpitz/bin-vendor@main\n        # with:\n        #   version: v0.0.5\n        #   config: alternate-bin.yaml\n\n      - name: Build\n        run: |\n          # invoke your binaries here ...\n```\n\n### Using in a Makefile\n\nUpdating a Makefile to support binaries downloaded using bin-vendor is easy.\nSimply add a line like the one below to the top of your Makefile.\n\n```makefile\nexport PATH := $(shell pwd)/bin:$(PATH)\n\ntarget1:\n    # invoke your binaries here ...\n```\n\n## bin.yaml\n\n`bin.yaml` is how you define the tools that a project needs.\nThe block below shows a full block of configuration.\nNot all elements are needed.\nSee the `bin.yaml` in bin-vendors repo for an example.\n\n```yaml\n# -- Your projects name.\nname: bin-vendor\n\ntools:\n  - # -- The name of the tool.\n    name: goreleaser\n    # -- The version of the tool you want to download.\n    version: v0.155.1\n    # -- We currently only support GitHub release assets.\n    github_release:\n      # -- The repo where the tool can be downloaded from.\n      repo: goreleaser/goreleaser\n      # -- Format of the asset name you want to download. Used when the platform\n      #    specific key is not set. See section below on variables and replacements.\n      format: goreleaser_{{ .OS }}_{{ .Arch }}.tar.gz\n      # -- A Linux specific format.\n      linux: goreleaser_Linux_{{ .Arch }}.tar.gz\n      # -- An OSX specific format.\n      osx: goreleaser_Darwin_{{ .Arch }}.tar.gz\n      # -- A Windows specific format.\n      windows: goreleaser_Windows_{{ .Arch }}.zip\n      # -- Replacements for adjusting the {{ .OS }} and {{ .Arch }} variables.\n      #    See section below.\n      replacements:\n        386: i386\n        amd64: x86_64\n```\n\n### Variables\n\nFormat strings support a small set of variable substitutions.\nThis is intended to help with matching archives for platforms.\nThe table below shows the various variables and some examples of each.\n\n| Variable         | Description          | Examples                           |\n|:-----------------|:---------------------|:-----------------------------------|\n| `{{ .Name }}`    | Name of the tool.    | `goreleaser`                       |\n| `{{ .Version }}` | Version of the tool. | `v0.155.1`                         |\n| `{{ .OS }}`      | Operating System     | `windows`, `linux`, `darwin` (OSX) |\n| `{{ .Arch }}`    | Architecture         | `amd64`, `arm64`, `386`            |\n\n### Replacements\n\nReplacements allow you to substitute one value for another.\nIt's an easy way to handle case sensitivity or architecture renames.\nReplacements only support `OS` and `Arch`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjpitz%2Fbin-vendor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjpitz%2Fbin-vendor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjpitz%2Fbin-vendor/lists"}