Files
goplt/docs/content/stories/phase0/0.2.1-install-config-dependencies.md

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/viper v1.18.0+
  • Install github.com/spf13/cobra v1.8.0+
  • Add to go.mod with proper version constraints

Implementation Steps

  1. Run go get github.com/spf13/viper@v1.18.0
  2. Run go get github.com/spf13/cobra@v1.8.0
  3. Run go mod tidy to update dependencies
  4. Verify packages in go.mod

Acceptance Criteria

  • Viper is listed in go.mod
  • Cobra is listed in go.mod
  • go mod verify passes
  • Dependencies are properly versioned

Implementation Notes

  • Use specific versions for reproducibility
  • Consider using go get -u for 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