New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating zip from dir prepends random tmpdir to packaged file paths. #1313

Open
pillarsdotnet opened this Issue Mar 31, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@pillarsdotnet
Contributor

pillarsdotnet commented Mar 31, 2017

When using fpm with source dir and target zip, a random tempdir is prepended to packaged file paths.

To demonstrate:

mkdir foo
echo test > foo/bar
fpm -s dir -t zip -n foo -p foo.zip foo
unzip -v foo.zip

Expected output:

Archive:  foo.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2017-03-31 18:42 00000000  foo/
       5  Stored        5   0% 2017-03-31 18:42 3bb935c6  foo/bar
--------          -------  ---                            -------
       5                5   0%                            2 files

Actual output:

Archive:  foo.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2017-03-31 18:45 00000000  tmp/package-dir-staging-
43e99d3c99bf3e340d26126f2a1002b341d844c5454e7a2442cbcf15cd0d/
       0  Stored        0   0% 2017-03-31 18:45 00000000  tmp/package-dir-staging-
43e99d3c99bf3e340d26126f2a1002b341d844c5454e7a2442cbcf15cd0d/foo/
       5  Stored        5   0% 2017-03-31 18:42 3bb935c6  tmp/package-dir-staging-
43e99d3c99bf3e340d26126f2a1002b341d844c5454e7a2442cbcf15cd0d/foo/bar
--------          -------  ---                            -------
       5                5   0%                            3 files
@pillarsdotnet

This comment has been minimized.

Contributor

pillarsdotnet commented Mar 31, 2017

Opened pull-request Fix zipfile target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment