Repository navigation
Software: add Flatpak and Snap backends (design 0018) - #44
Merged
Merged
Conversation
The software capability ran every entry through Chocolatey. Linux hosts had no backend. Each entry now runs through the backend it names: choco, flatpak or snap. The admin picks the backend per entry. - flatpak and snap run system-wide as root. Neither can hold an exact version, so a pinned entry reports cannot_run with the reason. - The agent installs neither tool and adds no remote. A missing tool reports cannot_run; fog-docs gives the manual steps. - SoftwareMissing replaces SoftwareBlocked: only a backend whose binary is missing is checked every poll. A failing installed-list now retries at the drift check instead of every poll. - Every poll declares software-backends-v1. A server sends an agent that does not declare it Chocolatey entries only, because v0.1.21 and earlier run every entry through Chocolatey. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bootstrap is a PowerShell script. On Linux it failed every run and logged a failed bootstrap before the entry reported Chocolatey missing. Seen on the fog-agent-test lab VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The software capability ran every entry through Chocolatey, so Linux hosts had no backend. Each entry now runs through the backend it names:
choco,flatpakorsnap. The admin picks the backend per entry.cannot_runwith the reason.cannot_run. fog-docs gives the manual steps.SoftwareMissingreplacesSoftwareBlocked. Only a backend whose binary is missing is checked every poll. A failing installed-list now retries at the drift check instead of every poll.software-backends-v1. A server sends an agent that does not declare it Chocolatey entries only (Software: offer Flatpak and Snap backends to the fog-agent fogproject#2079).Tests: parsers are tested against real
flatpak listandsnap listoutput from Fedora 44, plus a shim end-to-end test; the parser and poll-feature tests were seen red first.Lab: a 0.1.22-lab build on fog-agent-test (Debian 13) installed
hello-world(snap 6.4) and Flatseal (flatpak 2.4.1), removed the snap onabsent, refused a pinned snap, reported Chocolatey missing on Linux, and did not re-run the set each poll.Homebrew is not here:
brewrefuses to run as root, and the macOS package does not exist yet (0018 section 6).🤖 Generated with Claude Code