Skip to content

Commit fbfc5e9

Browse files
committed
updates
1 parent 7a5fc44 commit fbfc5e9

File tree

6 files changed

+42
-42
lines changed

6 files changed

+42
-42
lines changed

.github/workflows/check-dependencies-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Check Dependencies
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/v2#readme
6-
GO_VERSION: "1.19"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
99
on:

.github/workflows/test-go-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test Go
33

44
env:
55
# See: https://github.com/actions/setup-go/tree/v2#readme
6-
GO_VERSION: "1.19"
6+
GO_VERSION: "1.22"
77

88
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
99
on:

.licenses/go/github.com/gofrs/uuid.dep.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: github.com/google/uuid
3+
version: v1.6.0
4+
type: go
5+
summary: Package uuid generates and inspects UUIDs.
6+
homepage: https://pkg.go.dev/github.com/google/uuid
7+
license: bsd-3-clause
8+
licenses:
9+
- sources: LICENSE
10+
text: |
11+
Copyright (c) 2009,2014 Google Inc. All rights reserved.
12+
13+
Redistribution and use in source and binary forms, with or without
14+
modification, are permitted provided that the following conditions are
15+
met:
16+
17+
* Redistributions of source code must retain the above copyright
18+
notice, this list of conditions and the following disclaimer.
19+
* Redistributions in binary form must reproduce the above
20+
copyright notice, this list of conditions and the following disclaimer
21+
in the documentation and/or other materials provided with the
22+
distribution.
23+
* Neither the name of Google Inc. nor the names of its
24+
contributors may be used to endorse or promote products derived from
25+
this software without specific prior written permission.
26+
27+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38+
notices: []

DistTasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ version: "3"
2020

2121
vars:
2222
CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild"
23-
GO_VERSION: "1.19"
23+
GO_VERSION: "1.22"
2424
CHECKSUM_FILE: "{{.VERSION}}-checksums.txt"
2525

2626
tasks:

internal/binary/download.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"fmt"
2727
"hash"
2828
"io"
29-
"io/ioutil"
3029
"net/http"
3130
"strings"
3231
"time"
@@ -75,7 +74,7 @@ func download(ctx context.Context, url string) ([]byte, error) {
7574
}
7675
defer res.Body.Close()
7776

78-
body, err := ioutil.ReadAll(res.Body)
77+
body, err := io.ReadAll(res.Body)
7978
if err != nil {
8079
err = fmt.Errorf("%s: %w", "read request body", err)
8180
return nil, err

0 commit comments

Comments
 (0)