1
0
mirror of https://github.com/jordansissel/fpm synced 2025-04-20 13:28:00 +02:00
fpm/lib
Jordan Sissel e79daf1892 Use a temporary path when testing archive commands.
Previously, fpm would write to the current directory when using methods to check for the correct `ar` and `tar` commands.

This now uses Stud::Temporary to get a random path in the system temporary directory.

I found this error in the test suite when the fpm git workspace was not
writable -- for example, when mounted read-only through a container.

Error message, for posterity:

    1) FPM::Command -p | --package when given a directory should write the package to the given directory.
       Failure/Error: cmd.run(["-s", "empty", "-t", "deb", "-n", "example", "-p", path])
       Errno::EACCES:
         Permission denied @ rb_sysopen - fpm-dummy.tmp
2023-02-06 23:58:34 -08:00
..
fpm Use a temporary path when testing archive commands. 2023-02-06 23:58:34 -08:00
fpm.rb Introduce support for snap packages (#1490) 2018-10-16 15:59:17 -07:00