NLnetLabs / ploutos

Reusable packaging workflow for Rust projects
BSD 3-Clause "New" or "Revised" License
26 stars 4 forks source link

rpmlint: command not found #98

Closed ximon18 closed 11 months ago

ximon18 commented 11 months ago

This issue started occurring in the Ploutos weekly self-tests, e.g. from https://github.com/NLnetLabs/ploutos-testing/actions/runs/7235128698/job/19712251960:

+ rpmlint --version
/__w/_temp/1b089934-9321-4e2b-bc07-db8db288747e.sh: line 129: rpmlint: command not found

The underlying cause is an installation failure, which for some reason doesn't cause the job to abort:

+ pip3 install python-magic rpmlint
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
The directory '/github/home/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/github/home/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting python-magic
  Downloading https://files.pythonhosted.org/packages/6c/73/9f872cb81fc5c3bb48f7227872c28975f998f3e7c2b1c16e95e6432bbb90/python_magic-0.4.27-py2.py3-none-any.whl
Collecting rpmlint
  Downloading https://files.pythonhosted.org/packages/c3/a8/dc6436df1f2dd1ebe27ee22ae263c8a55fa588223a19df9bd2194f054634/rpmlint-2.5.0.tar.gz (5.9MB)
  Running setup.py (path:/tmp/pip-build-g7y7yq_q/rpmlint/setup.py) egg_info for package rpmlint produced metadata for project name unknown. Fix your #egg=rpmlint fragments.
Installing collected packages: python-magic, unknown
  Running setup.py install for unknown: started
    Running setup.py install for unknown: finished with status 'done'
Successfully installed python-magic-0.4.27 unknown-0.0.0