software

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package software checks a catalog item's requires_software entries: software sofcat needs on the machine but never installs (see site/src/content/docs/guides/zip-items.md).

Index

Constants

This section is empty.

Variables

View Source
var (
	// GOOS is the OS whose entries are checked: munki on darwin, chocolatey
	// on windows. Tests set it.
	GOOS = runtime.GOOS
	// MunkiReport is Munki's run report, which lists every installed managed
	// item under InstalledItems. Tests point it at a fixture. The
	// SOFCAT_TEST_MUNKI_REPORT environment variable replaces it for the macOS
	// smoke (test/manual/run-tapas-smoke.sh), which must not touch the rig's
	// real Munki report; only root can set a daemon's environment.
	MunkiReport = cmp.Or(os.Getenv("SOFCAT_TEST_MUNKI_REPORT"), "/Library/Managed Installs/ManagedInstallReport.plist")
	// ChocolateyLib returns Chocolatey's package directory, which holds one
	// directory per installed package id. Tests replace it.
	ChocolateyLib = func() string {
		dir := os.Getenv("ProgramData")
		if dir == "" {
			dir = `C:\ProgramData`
		}
		return filepath.Join(dir, "chocolatey", "lib")
	}
)

Functions

func Missing

func Missing(item catalog.Item) []string

Missing returns the display names of item's required software that is absent on this OS, in catalog order. An entry with no key for this OS is skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL