You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: include GUI apps (casks) when installing from remote config (#18)
* fix: check all git config scopes, not just --global
The previous implementation only checked --global git config, but users
may have their git identity configured in:
- Local repository config (.git/config)
- System config (/etc/gitconfig)
- Other scopes
This change first tries --global, then falls back to checking all scopes
if --global returns empty. This ensures we detect git configuration
regardless of where it's set.
Closes git config detection issue
* test: add test for git config scope fallback
Adds TestGetGitConfig_FallsBackToAnyScope to verify that GetGitConfig
checks all git config scopes (global, local, system) when looking for
user.name and user.email, not just --global.
Related to git config detection issue
* fix: don't check dotfiles repo state when URLs are empty
The diffDotfiles function was always checking the local ~/.dotfiles git
state, even when comparing snapshots with empty dotfiles URLs. This
caused test failures when the user's actual dotfiles repo had uncommitted
changes.
Fix: Only check dotfiles repo state if at least one URL is configured.
If both system and reference have empty dotfiles URLs, skip the git state
check entirely.
This makes the tests deterministic and not dependent on the user's local
dotfiles repo state.
* fix: include GUI apps (casks) when installing from remote config
When installing from a remote config (e.g., 'openboot install jx'), GUI apps
(casks) were being silently skipped. The code only added CLI packages to
the SelectedPkgs map but never added the Casks.
This fix adds the missing loop to include casks in both:
- internal/installer/installer.go (runCustomInstall)
- internal/installer/step_packages.go (stepPackageCustomization)
Closes#17
* test: add regression test for cask inclusion in SelectedPkgs
Adds TestRunCustomInstall_IncludesCasksInSelectedPkgs to verify that
GUI apps (casks) from remote configs are properly added to SelectedPkgs.
This prevents regression of the bug where casks were silently skipped
during remote config installation.
Related to #17
* test: assert casks are included in SelectedPkgs for remote configs
---------
Co-authored-by: Jerry Xie <jerryxie@Jerrys-MacBook-Air.local>
Co-authored-by: Jerry Xie <>
0 commit comments