Skip to content

Allow Wails3 Doctor recognize globally installed apt packages#2972

Merged
leaanthony merged 5 commits into
wailsapp:v3-alphafrom
atterpac:v3-alpha
Oct 21, 2023
Merged

Allow Wails3 Doctor recognize globally installed apt packages#2972
leaanthony merged 5 commits into
wailsapp:v3-alphafrom
atterpac:v3-alpha

Conversation

@atterpac

Copy link
Copy Markdown
Member

Description

wails3 doctor command failed to recognize installed apt due to checking for "[installed]" so any packages installed both globally and locally packages are listed as "all" for example a globally installed npm would return npm/jammy 8.5.1~ds-1 all

Fixes if packages have more than one attribute "[installed, <other attributes>]" by checking if apt list -qq returns either "installed" or "any"

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Linux (Ubuntu)

Test Configuration

Removed required packages pkg-config and libwebkit to ensure the test still fails if no package is missing
Added removed packages per wails doctor instructions
Ran wails3 doctor to ensure it validated the install

Checklist:

  • I have updated website/src/pages/changelog.mdx with details of this PR (no changed needed)
  • My code follows the general coding style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (no changes needed)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (existing tests pass)
  • New and existing unit tests pass locally with my changes

@netlify

netlify Bot commented Oct 10, 2023

Copy link
Copy Markdown

Deploy Preview for dapper-pastelito-9b5e5b ready!

Name Link
🔨 Latest commit 9e35210
🔍 Latest deploy log https://app.netlify.com/sites/dapper-pastelito-9b5e5b/deploys/6533626e76928a0008eea7c5
😎 Deploy Preview https://deploy-preview-2972--dapper-pastelito-9b5e5b.netlify.app/changelog
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Adding a space to ensure checking against "all" doesn't always catch "install" or "not-installed" etc
Doctor Apt Verify
@leaanthony leaanthony merged commit fb17ec8 into wailsapp:v3-alpha Oct 21, 2023
@coderabbitai coderabbitai Bot mentioned this pull request Mar 11, 2025
Grantmartin2002 pushed a commit to Grantmartin2002/wails that referenced this pull request Apr 29, 2026
…pp#2972)

* Fixes doctor bug for apt package manager

* Actually fix it

* Pad the text " all" 

Adding a space to ensure checking against "all" doesn't always catch "install" or "not-installed" etc

* Update changelog.md

Doctor Apt Verify

---------

Co-authored-by: atterpac <michael@atterpac.dev>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
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.

2 participants