Skip to content

'make dist' creates empty tarball on macOS #216

@apjanke

Description

@apjanke

From current master, on macOS 10.14.3:

$ make dist        
mkdir -p "tmp"
Creating package version 0.7.0 release ...
rm -f -r "tmp/doctest-0.7.0"
git archive --format=tar --prefix="tmp/doctest-0.7.0/" HEAD | tar -x
rm -f "tmp/doctest-0.7.0/README.matlab.md" \
	      "tmp/doctest-0.7.0/.gitignore" \
	      "tmp/doctest-0.7.0/.travis.yml" \
	      "tmp/doctest-0.7.0/.mailmap"
rm -f -r "tmp/doctest-0.7.0/util"
chmod -R a+rX,u+w,go-w "tmp/doctest-0.7.0"
tar: Option --mtime=2019-03-23 12:31:42 -0300 is not supported
Usage:
  List:    tar -tf <archive-filename>
  Extract: tar -xf <archive-filename>
  Create:  tar -cf <archive-filename> [filenames...]
  Help:    tar --help
$ echo $?      
0

Looks like it's expecting GNU tar and not compatible with BSD tar? And this failure isn't propagating up to a failure of the make dist call itself?

$ sw_vers      
ProductName:	Mac OS X
ProductVersion:	10.14.3
BuildVersion:	18D109
$ which tar  
/usr/bin/tar
$ tar --version   
bsdtar 2.8.3 - libarchive 2.8.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions