fix(install): add error handling, code cleanups, and YAML type refactor #240

Closed
opened 2026-04-05 17:03:18 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @rodneyosodo on 2/17/2026

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Improves the install package with better error handling and code quality cleanups across multiple files. Replaces interface{} with any for YAML map types to use modern Go idioms.

How to test?

  1. Run the installer and verify it completes without errors.
  2. Test error paths (e.g., invalid config, missing input) to confirm errors are surfaced correctly instead of silently ignored.
  3. Confirm CrowdSec and container setup still behave as expected.
*Originally created by @rodneyosodo on 2/17/2026* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description Improves the install package with better error handling and code quality cleanups across multiple files. Replaces `interface{}` with `any` for YAML map types to use modern Go idioms. ## How to test? 1. Run the installer and verify it completes without errors. 2. Test error paths (e.g., invalid config, missing input) to confirm errors are surfaced correctly instead of silently ignored. 3. Confirm CrowdSec and container setup still behave as expected.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#240