bug: bbctl config init cannot run without a valid configuration
Bug Report Template
Runtime Information
Please provide the following details about your environment:
- Operating System (OS): Mac
- Architecture (arch): ARM
- Shell: fish
-
Installation Method: (e.g.,
go install, binary, Homebrew, etc.)go install -
bbctl version --clientoutput:f5ab05561fbc684e8f9a260079c2a9677a730d37
Steps to Reproduce
Please describe the steps needed to reproduce the bug:
- Delete all
bbctlconfigurations (rm -rf ~/.config/bbctl,rm -rf ~/.bbctl) bbctl config init
Expected Behavior
The bbctl configuration init wizard should start to bootstrap a new configuration
Actual Behavior
danieldides@BPH-MAC14 ~/P/b/t/bbctl (main)> bbctl config init
{"time":"2025-01-27T16:44:00.34568-05:00","level":"WARN","source":{"function":"main.injectableMain.func1","file":"/Users/danieldides/Projects/big-bang/tools/bbctl/main.go","line":119},"msg":"Config file not found (~/.bbctl/config, /etc/bbctl/config, or ./config)."}
{"time":"2025-01-27T16:44:00.346488-05:00","level":"ERROR","source":{"function":"main.injectableMain.func1","file":"/Users/danieldides/Projects/big-bang/tools/bbctl/main.go","line":139},"msg":"error getting config: error during validation for configuration: Key: 'GlobalConfiguration.BigBangRepo' Error:Field validation for 'BigBangRepo' failed on the 'required' tag"}
The wizard fails to start due to a missing configuration file.
Additional Context
Comments or Feedback
The command should ignore the validation steps.