fix: Resolve CI lint and build errors
- Add error suppression for enc.Encode() calls in info.go (errcheck lint) - Add missing encoding/json import in install_integration_test.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,7 @@ Examples:
|
|||||||
if jsonFlag {
|
if jsonFlag {
|
||||||
enc := json.NewEncoder(os.Stdout)
|
enc := json.NewEncoder(os.Stdout)
|
||||||
enc.SetIndent("", " ")
|
enc.SetIndent("", " ")
|
||||||
enc.Encode(info)
|
_ = enc.Encode(info)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ func showWhatsNew(jsonOutput bool) {
|
|||||||
if jsonOutput {
|
if jsonOutput {
|
||||||
enc := json.NewEncoder(os.Stdout)
|
enc := json.NewEncoder(os.Stdout)
|
||||||
enc.SetIndent("", " ")
|
enc.SetIndent("", " ")
|
||||||
enc.Encode(map[string]interface{}{
|
_ = enc.Encode(map[string]interface{}{
|
||||||
"current_version": Version,
|
"current_version": Version,
|
||||||
"recent_changes": versionChanges,
|
"recent_changes": versionChanges,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|||||||
Reference in New Issue
Block a user