Skip to content

Commit

Permalink
Merge pull request #171 from prometheus-community/superq/update_build
Browse files Browse the repository at this point in the history
Update build
  • Loading branch information
SuperQ authored Oct 17, 2023
2 parents 2b8be68 + 1c14fc4 commit 6d3a183
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 510 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ executors:
# also be updated.
golang:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.21
jobs:
test:
executor: golang
Expand Down
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ issues:

linters-settings:
errcheck:
exclude: scripts/errcheck_excludes.txt
exclude-functions:
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
2 changes: 1 addition & 1 deletion .promu.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here,
# .circleci/config.yml should also be updated.
version: 1.18
version: 1.21

repository:
path: github.com/prometheus-community/ipmi_exporter
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"strings"
"sync"

Expand Down Expand Up @@ -222,7 +222,7 @@ func (sc *SafeConfig) ReloadConfig(configFile string) error {
var err error

if configFile != "" {
config, err = ioutil.ReadFile(configFile)
config, err = os.ReadFile(configFile)
if err != nil {
level.Error(logger).Log("msg", "Error reading config file", "error", err)
return err
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/prometheus-community/ipmi_exporter

go 1.17
go 1.19

require (
github.com/alecthomas/kingpin/v2 v2.3.2
Expand Down
502 changes: 0 additions & 502 deletions go.sum

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions scripts/errcheck_excludes.txt

This file was deleted.

0 comments on commit 6d3a183

Please sign in to comment.