Skip to content

Commit

Permalink
Ignore version in config files (#923)
Browse files Browse the repository at this point in the history
Re-add the version key, but omitempty so it is simply ignored for now.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Jul 19, 2023
1 parent 9c7e186 commit 9e644eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var (
type Config struct {
Auths map[string]*Auth `yaml:"auths,omitempty"`
Modules map[string]*Module `yaml:"modules,omitempty"`
Version int `yaml:"version,omitempty"`
}

type WalkParams struct {
Expand Down
1 change: 1 addition & 0 deletions generator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
type Config struct {
Auths map[string]*config.Auth `yaml:"auths"`
Modules map[string]*ModuleConfig `yaml:"modules"`
Version int `yaml:"version,omitempty"`
}

type MetricOverrides struct {
Expand Down

0 comments on commit 9e644eb

Please sign in to comment.