CLI tool that creates a TAR file from the list of inputs.
Also provides custom Bazel rules pkg_tar
and file_size
Install bazelisk:
go install github.com/bazelbuild/bazelisk@latest
ln -s "$GOPATH/bin/bazelisk" /usr/local/bin/bazel
File size custom rule:
bazel run //rules:size
pkg_tar custom rule:
bazel build //rules:archive
CLI TAR go binary:
bazel run //cmd/tar -- output.tar input1 input2 input3
bazel run //:buildifier
bazel test //rules:pkg_tar_test