task/1.11
Raw Download raw file

vendor packing tools

This directory contains two helper scripts to manage a compressed vendor.tar.gz archive of the project’s vendor directory. This keeps the project commits clean from vendor changes, while preserving repeatable builds.

Files

  • pack.go – Creates vendor.tar.gz from the current vendor directory.
  • unpack.go – Extracts vendor.tar.gz into the vendor directory.

Usage

Run from the project root:

go run tools/vendor/pack.go   # Archive the vendor directory
go run tools/vendor/unpack.go # Extract the vendor archive

Design Decisions

  • Designed to avoid committing all of the vendor changes directly within the repo
  • Enables reproducible builds with vendored, git-lfs stored vendor.tar.gz
  • No external tools: Pure Go. No make, make-alternatives, no shell dependencies.
  • Portable & clean: go build still works if you don’t use this tool