Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
lint:
runs-on: ubuntu-24.04
container:
image: quay.io/cortexproject/build-image:master-0ddced051
image: quay.io/cortexproject/build-image:master-59491e9aae
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
test:
runs-on: ubuntu-24.04
container:
image: quay.io/cortexproject/build-image:master-0ddced051
image: quay.io/cortexproject/build-image:master-59491e9aae
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: "2"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ check-protos: protos
git diff --exit-code || (echo "Please rebuild protobuf code by running 'make protos'" && false)

lint:
golangci-lint run --new-from-rev d2f56921e6b0
golangci-lint run

test:
go test ./...
Expand Down
35 changes: 0 additions & 35 deletions exec/exec.go

This file was deleted.

99 changes: 0 additions & 99 deletions fs/fs.go

This file was deleted.

81 changes: 0 additions & 81 deletions fs/fs_test.go

This file was deleted.

62 changes: 0 additions & 62 deletions fs/readdircount_linux_amd64.go

This file was deleted.

9 changes: 0 additions & 9 deletions fs/readdircount_unsupported.go

This file was deleted.

8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
module github.com/weaveworks/common

go 1.22

toolchain go1.23.2
go 1.24

require (
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/davecgh/go-spew v1.1.1
github.com/felixge/httpsnoop v1.0.3
github.com/go-kit/log v0.2.1
github.com/gogo/googleapis v1.1.0
Expand All @@ -19,7 +16,6 @@ require (
github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9
github.com/opentracing/opentracing-go v1.1.0
github.com/pkg/errors v0.9.1
github.com/pmezard/go-difflib v1.0.0
github.com/prometheus/client_golang v1.15.1
github.com/prometheus/exporter-toolkit v0.8.2
github.com/rantav/go-grpc-channelz v0.0.4
Expand All @@ -41,6 +37,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect
github.com/coreos/go-systemd/v22 v22.4.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-chi/chi/v5 v5.0.7 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
Expand All @@ -51,6 +48,7 @@ require (
github.com/mattn/go-isatty v0.0.4 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
Expand Down
11 changes: 8 additions & 3 deletions httpgrpc/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ func newTestServer(handler http.Handler) (*testServer, error) {

func TestBasic(t *testing.T) {
server, err := newTestServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "world")
_, err := fmt.Fprint(w, "world")
require.NoError(t, err)
}))
require.NoError(t, err)
defer server.grpcServer.GracefulStop()
Expand Down Expand Up @@ -115,12 +116,16 @@ func TestTracePropagation(t *testing.T) {
jaeger := jaegercfg.Configuration{}
closer, err := jaeger.InitGlobalTracer("test")
require.NoError(t, err)
defer closer.Close()
defer func() {
err := closer.Close()
require.NoError(t, err)
}()

server, err := newTestServer(middleware.Tracer{}.Wrap(
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
span := opentracing.SpanFromContext(r.Context())
fmt.Fprint(w, span.BaggageItem("name"))
_, err := fmt.Fprint(w, span.BaggageItem("name"))
require.NoError(t, err)
}),
))

Expand Down
Loading