Skip to content

Commit 7012862

Browse files
renovate[bot]mx-psicodeboten
authored
fix(deps): update all golang.org/x packages (#14223)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | golang.org/x/mod | `v0.28.0` -> `v0.30.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.28.0/v0.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | golang.org/x/sys | `v0.37.0` -> `v0.38.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsys/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsys/v0.37.0/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | golang.org/x/tools | `v0.38.0` -> `v0.39.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftools/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftools/v0.38.0/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=--> --------- Signed-off-by: alex boten <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pablo Baeyens <[email protected]> Co-authored-by: Alex Boten <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]>
1 parent b12ce10 commit 7012862

File tree

36 files changed

+58
-78
lines changed

36 files changed

+58
-78
lines changed

cmd/builder/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
go.uber.org/goleak v1.3.0
1818
go.uber.org/multierr v1.11.0
1919
go.uber.org/zap v1.27.1
20-
golang.org/x/mod v0.28.0
20+
golang.org/x/mod v0.30.0
2121
)
2222

2323
require (

cmd/builder/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/debugexporter/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
go.opentelemetry.io/collector/pdata/xpdata v0.140.0
2121
go.uber.org/goleak v1.3.0
2222
go.uber.org/zap v1.27.1
23-
golang.org/x/sys v0.37.0
23+
golang.org/x/sys v0.38.0
2424
)
2525

2626
require (

exporter/debugexporter/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/exporterhelper/internal/queue/persistent_queue.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ func (pq *persistentQueue[T]) internalSize() int64 {
141141
}
142142

143143
func (pq *persistentQueue[T]) requestSize() int64 {
144-
//nolint:gosec
145144
return int64(pq.metadata.WriteIndex-pq.metadata.ReadIndex) + int64(len(pq.metadata.CurrentlyDispatchedItems))
146145
}
147146

exporter/exporterhelper/internal/queue/persistent_queue_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,6 @@ func requireCurrentlyDispatchedItemsEqual(t *testing.T, pq *persistentQueue[intR
11851185
func itemIndexArrayToBytes(arr []uint64) []byte {
11861186
size := len(arr)
11871187
buf := make([]byte, 0, 4+size*8)
1188-
//nolint:gosec
11891188
buf = binary.LittleEndian.AppendUint32(buf, uint32(size))
11901189
for _, item := range arr {
11911190
buf = binary.LittleEndian.AppendUint64(buf, item)

exporter/exporterhelper/internal/queuebatch/metrics_batch_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ func TestExtractHistogramDataPoints(t *testing.T) {
604604

605605
for i := 0; i < tt.numDataPoints; i++ {
606606
dp := histogram.DataPoints().AppendEmpty()
607-
dp.SetCount(uint64(i)) //nolint:gosec // disable G115
607+
dp.SetCount(uint64(i))
608608
}
609609

610610
sz := &mockMetricsSizer{dpSize: 1}
@@ -653,7 +653,7 @@ func TestExtractExponentialHistogramDataPoints(t *testing.T) {
653653
expHistogram := srcMetric.SetEmptyExponentialHistogram()
654654
for i := 0; i < tt.numDataPoints; i++ {
655655
dp := expHistogram.DataPoints().AppendEmpty()
656-
dp.SetCount(uint64(i)) //nolint:gosec // disable G115
656+
dp.SetCount(uint64(i))
657657
}
658658

659659
sz := &mockMetricsSizer{dpSize: 1}
@@ -702,7 +702,7 @@ func TestExtractSummaryDataPoints(t *testing.T) {
702702
summary := srcMetric.SetEmptySummary()
703703
for i := 0; i < tt.numDataPoints; i++ {
704704
dp := summary.DataPoints().AppendEmpty()
705-
dp.SetCount(uint64(i)) //nolint:gosec // disable G115
705+
dp.SetCount(uint64(i))
706706
}
707707

708708
sz := &mockMetricsSizer{dpSize: 1}

exporter/exporterhelper/internal/sizer/proto_delta_sizer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type protoDeltaSizer struct{}
2626
// - opentelemetry-collector/pdata/internal/data/protogen/profiles/v1development/profiles.pb.go
2727
// which is generated with gogo/protobuf.
2828
func (s *protoDeltaSizer) DeltaSize(newItemSize int) int {
29-
return 1 + newItemSize + sov(uint64(newItemSize)) //nolint:gosec // disable G115
29+
return 1 + newItemSize + sov(uint64(newItemSize))
3030
}
3131

3232
func sov(x uint64) int {

internal/cmd/pdatagen/internal/proto/field.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ func genProtoTag(fieldNumber uint32, wt WireType) []string {
218218
i := 0
219219
keybuf := make([]byte, 0)
220220
for i = 0; x > 127; i++ {
221-
//nolint:gosec
222221
keybuf = append(keybuf, 0x80|uint8(x&0x7F))
223222
x >>= 7
224223
}

internal/memorylimiter/iruntime/total_memory_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@ func TotalMemory() (uint64, error) {
4949
return totalMem, nil
5050
}
5151

52-
//nolint:gosec
5352
return uint64(memoryQuota), nil
5453
}

0 commit comments

Comments
 (0)