Skip to content

Commit

Permalink
Require Go 1.17 to build and log Go version in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Sep 6, 2021
1 parent 553ecda commit a318652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ func (c *Config) persistentPreRunRootE(cmd *cobra.Command, args []string) error
log.Debug().
Object("version", c.versionInfo).
Strs("args", args).
Str("goVersion", runtime.Version()).
Msg("persistentPreRunRootE")

c.baseSystem = chezmoi.NewRealSystem(c.fileSystem,
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17

//go:generate go run . completion bash -o completions/chezmoi-completion.bash
//go:generate go run . completion fish -o completions/chezmoi.fish
//go:generate go run . completion powershell -o completions/chezmoi.ps1
Expand Down

0 comments on commit a318652

Please sign in to comment.