1.3 KiB
1.3 KiB
Task 0.2.1: Install Configuration Dependencies
Metadata
- Task ID: 0.2.1
- Title: Install Configuration Dependencies
- Phase: 0 - Project Setup & Foundation
- Section: 0.2 Configuration System
- Status: Pending
- Priority: High
- Estimated Time: 5 minutes
- Dependencies: 0.1.1
Description
Install Viper and Cobra packages for configuration management and CLI support.
Requirements
- Install
github.com/spf13/viperv1.18.0+ - Install
github.com/spf13/cobrav1.8.0+ - Add to
go.modwith proper version constraints
Implementation Steps
- Run
go get github.com/spf13/viper@v1.18.0 - Run
go get github.com/spf13/cobra@v1.8.0 - Run
go mod tidyto update dependencies - Verify packages in
go.mod
Acceptance Criteria
- Viper is listed in
go.mod - Cobra is listed in
go.mod go mod verifypasses- Dependencies are properly versioned
Related ADRs
Implementation Notes
- Use specific versions for reproducibility
- Consider using
go get -ufor latest patch versions - Document version choices in ADR
Testing
go mod verify
go list -m github.com/spf13/viper
go list -m github.com/spf13/cobra