Skip to content

Commit

Permalink
upgrade go version to 1.18 (#354)
Browse files Browse the repository at this point in the history
* upgrade go version to 1.18

* fix linter
  • Loading branch information
maha-hajja committed Apr 6, 2022
1 parent ffd0e5e commit 0d4222f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Test
run: make test-integration GOTEST_FLAGS="-v -count=1"
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -12,12 +12,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.44.2
version: v1.45.2

buf-lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,5 +1,5 @@
# Start with a golang base
FROM golang:1.17 AS base
FROM golang:1.18 AS base

# Install core tools
RUN apt-get update &&\
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -54,7 +54,7 @@ and exploring the HTTP API through Swagger UI.
### Build from source

Requirements:
* [Go](https://golang.org/) (1.17 or later)
* [Go](https://golang.org/) (1.18 or later)
* [Node.js](https://nodejs.org/) (16.x)
* [Yarn](https://yarnpkg.com/) (latest 1.x)
* [Ember CLI](https://ember-cli.com/)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/conduitio/conduit

go 1.17
go 1.18

require (
github.com/NYTimes/gziphandler v1.1.1
Expand Down
36 changes: 0 additions & 36 deletions go.sum

Large diffs are not rendered by default.

Expand Up @@ -28,7 +28,7 @@ import (
var (
testCounter = metrics.NewCounter("prom_example_counter", "example")
testTimer = metrics.NewTimer("prom_example_timer", "example")
// nolint:unused,deadcode,varcheck // the whole point of this is to show that even unused gauges show up in prometheus
// nolint:deadcode,varcheck // the whole point of this is to show that even unused gauges show up in prometheus
testGauge = metrics.NewGauge("prom_example_gauge", "example")
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/pipeline/lifecycle.go
Expand Up @@ -358,7 +358,7 @@ func (s *Service) runPipeline(ctx context.Context, pl *Instance) error {
// If any of the nodes stops, the nodesTomb will be put into a dying state
// and ctx will be cancelled.
// This way, the other nodes will be notified that they need to stop too.
ctx := nodesTomb.Context(nil) //nolint:staticcheck // required by tomb
ctx := nodesTomb.Context(nil)
s.logger.Trace(ctx).Str(log.NodeIDField, node.ID()).Msg("running node")
defer func() {
e := s.logger.Trace(ctx)
Expand Down Expand Up @@ -405,7 +405,7 @@ func (s *Service) runPipeline(ctx context.Context, pl *Instance) error {
// before declaring the pipeline as stopped.
pl.t = &tomb.Tomb{}
pl.t.Go(func() error {
ctx := pl.t.Context(nil) //nolint:staticcheck // required by tomb
ctx := pl.t.Context(nil)
err := nodesTomb.Wait()

measure.PipelinesGauge.WithValues(strings.ToLower(pl.Status.String())).Dec()
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/acceptance_testing.go
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//nolint:revive,dogsled,stylecheck // this is a test file
//nolint:revive,dogsled // this is a test file
package plugin

import (
Expand Down

0 comments on commit 0d4222f

Please sign in to comment.