Skip to content
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

remove unsafe vulkan installation #211

Closed
wants to merge 1 commit into from

Conversation

theofficialgman
Copy link
Contributor

closes #210
closes #209

πŸ“‘ Description

Removes unsafe vulkan installation that overwrites system packages and breaks users installs.

β„Ή Additional Information

If the developer wishes to re-add these in a safe manner here is what needs to be done:

  1. install to a path not managed by the package manager (eg: /usr/local). All files can be installed there and are preferred over the main location (eg: /usr/local/bin /usr/local/share /usr/local/vulkan/, etc). Refer to the loader documentation for further explanation https://vulkan.lunarg.com/doc/view/1.3.275.0/linux/loader_and_layer_interface.html
  2. Remove all online components and apt hook (with 1., they are not needed). They are dangerous (prone to fail) and are broken by design (only work if the system is online and the current user running apt/dpkg has the required directory in their $HOME directory, multi-user systems are thus broken)

The developer should add their own cleanup script to fix broken user installs caused by their previous script mistakes. The developer should send a notification to all users (via whatever method available to them) for the affected users. These are not covered in the context of this PR.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @theofficialgman - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟒 General issues: all looks good
  • 🟒 Security: all looks good
  • 🟒 Testing: all looks good
  • 🟒 Complexity: all looks good
  • 🟒 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click πŸ‘ or πŸ‘Ž on each comment to tell me if it was helpful.

@jmcerrejon
Copy link
Owner

I'll take into account installing the drivers into another directory.

This PR removes the process of installing the latest Vulkan Mesa driver into your OS. I want to let users choose If they want to install it, even If It's not a secure option or you can break it.

Come on, It's Linux! We deserve to break things IF WE WANT!

So I'll reject this PR. Thank you anyway.

@jmcerrejon jmcerrejon closed this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove vulkan script (v2) Remove vulkan script
2 participants