fix home directory

This commit is contained in:
cupcakearmy 2022-02-16 21:58:09 +01:00
parent 1f69a7974a
commit d85470459f
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
3 changed files with 12 additions and 2 deletions

View File

@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.5.5] - 2022-02-16
### Changed
- Go version was updated from `1.16` to `1.17`
### Fixed
- Home directory was not being taken into account for loading configs.
## [1.5.4] - 2022-02-16
### Fixed

View File

@ -61,7 +61,7 @@ func initConfig() {
configPaths := []string{"."}
// Home
if home, err := homedir.Dir(); err != nil {
if home, err := homedir.Dir(); err == nil {
configPaths = append(configPaths, home)
}

View File

@ -17,7 +17,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.5.4"
const VERSION = "1.5.5"
type OptionMap map[string][]interface{}
type Options map[string]OptionMap