reptar

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 8 Imported by: 0

README

Repatar

TODO: write up a test suite with bramble that covers:

  • relative paths everywhere
  • correct symlink handling
  • compatability to gnutar with the same inputs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipReptar

func GzipReptar(location string, out io.Writer) (err error)

GzipReptar just wraps reptar in gzip.

func Reptar

func Reptar(location string, out io.Writer) (err error)

Reptar creates a tar of a location. Reptar stands for reproducible tar and is intended to replicate the following gnu tar command:

tar - \
--sort=name \
--mtime="1970-01-01 00:00:00Z" \
--owner=0 --group=0 --numeric-owner \
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
-cf

This command is currently not complete and only works on very basic test cases. GNU Tar also adds padding to outputted files

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL