Open TimSpence opened 4 years ago
It also assumes "python" is available which isn't true on Ubuntu 20.04 AFAIK. It depends on either an installation of python 2 or installing the package python-is-python3
(which symlinks python
to python3
)
Sorry about the delay here! Yes there are definitely a lot of assumptions in the build process -- having a dockerized version would be great but lets start by merging your PR so the script doesn't continue after errors.
Sorry for the delay in merging!
Some have been previously mentioned: https://github.com/facebook/PathPicker/issues/256. The script makes assumptions about system capabilities and fails to terminate when those assumptions aren't met. In particular, it assumes
fakeroot
is available. If fakeroot is not available, execution continues and multiple files are deleted from the working copy. This is the outcome:It also assumes the script executes from
debian/
, so it fails when run from project root.I can fix this in two ways.
package.sh
so that it terminates if any command returns a non-zero exit code.fpp
without having to understand the package build process.Option 1 is simpler, but 2 is preferable (as long as we assume the user has
Docker
running). Option 2 also automates the build process, which may be desirable if Facebook wants to host the package in a mirror.