Skip to content

Commit a48a6ca

Browse files
authored
chore: Update go deps for 2.15 release (#9773)
1 parent cff198e commit a48a6ca

File tree

854 files changed

+20190
-12720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

854 files changed

+20190
-12720
lines changed

go.mod

Lines changed: 130 additions & 116 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 234 additions & 235 deletions
Large diffs are not rendered by default.

vendor/github.com/alessio/shellescape/.gitignore renamed to vendor/al.essio.dev/pkg/shellescape/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ _testmain.go
2626
.idea/
2727

2828
escargs
29+
30+
config.hcl
31+
32+
.DS_Store

vendor/github.com/alessio/shellescape/.golangci.yml renamed to vendor/al.essio.dev/pkg/shellescape/.golangci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ linters:
66
disable-all: true
77
enable:
88
- bodyclose
9+
- copyloopvar
910
- dogsled
11+
- gci
1012
- goconst
1113
- gocritic
1214
- gofmt
@@ -17,15 +19,14 @@ linters:
1719
- ineffassign
1820
- misspell
1921
- prealloc
20-
- exportloopref
2122
- revive
2223
- staticcheck
2324
- stylecheck
2425
- typecheck
26+
- thelper
2527
- unconvert
2628
- unparam
2729
- unused
28-
- misspell
2930
- wsl
3031

3132
issues:
@@ -42,18 +43,19 @@ issues:
4243
- text: "ST1003:"
4344
linters:
4445
- stylecheck
45-
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
46-
# https://github.com/dominikh/go-tools/issues/389
47-
- text: "ST1016:"
46+
- path: "_test.go"
4847
linters:
49-
- stylecheck
48+
- wsl
5049

5150
linters-settings:
5251
dogsled:
5352
max-blank-identifiers: 3
54-
maligned:
55-
# print struct with more effective memory layout or not, false by default
56-
suggest-new: true
57-
58-
run:
59-
tests: false
53+
# define the import orders
54+
gci:
55+
sections:
56+
# Standard section: captures all standard packages.
57+
- standard
58+
# Default section: catchall that is not standard or custom
59+
- default
60+
# linters that related to local tool, so they should be separated
61+
- localmodule
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, caste, color, religion, or sexual
11+
identity and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the overall
27+
community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or advances of
32+
any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email address,
36+
without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official email address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at
64+
[alessio AT debian DOT org][contact].
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series of
87+
actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or permanent
94+
ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within the
114+
community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.1, available at
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
128+
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations
134+
[contact]: mailto:alessio_AT_debian_DOT_org
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
#!/usr/bin/make -f
3+
4+
VERSION := $(shell git describe)
5+
6+
all: build
7+
8+
build:
9+
go build -a -v
10+
11+
install:
12+
go install ./cmd/escargs
13+
14+
escargs: build
15+
go build -v \
16+
-ldflags="-X 'main.version=$(VERSION)'" \
17+
./cmd/escargs
18+
19+
clean:
20+
rm -rfv escargs
21+
22+
uninstall:
23+
rm -v $(shell go env GOPATH)/bin/escargs
24+
25+
.PHONY: build clean install uninstall

vendor/github.com/alessio/shellescape/README.md renamed to vendor/al.essio.dev/pkg/shellescape/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
# shellescape
2+
13
![Build](https://github.com/alessio/shellescape/workflows/Build/badge.svg)
24
[![GoDoc](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/alessio/shellescape?tab=overview)
35
[![sourcegraph](https://sourcegraph.com/github.com/alessio/shellescape/-/badge.svg)](https://sourcegraph.com/github.com/alessio/shellescape)
46
[![codecov](https://codecov.io/gh/alessio/shellescape/branch/master/graph/badge.svg)](https://codecov.io/gh/alessio/shellescape)
5-
[![Coverage](https://gocover.io/_badge/github.com/alessio/shellescape)](https://gocover.io/github.com/alessio/shellescape)
67
[![Go Report Card](https://goreportcard.com/badge/github.com/alessio/shellescape)](https://goreportcard.com/report/github.com/alessio/shellescape)
78

8-
# shellescape
99
Escape arbitrary strings for safe use as command line arguments.
10+
1011
## Contents of the package
1112

1213
This package provides the `shellescape.Quote()` function that returns a
@@ -32,6 +33,7 @@ import (
3233
func main() {
3334
fmt.Printf("ls -l %s\n", os.Args[1])
3435
}
36+
3537
```
3638
_[See in Go Playground](https://play.golang.org/p/Wj2WoUfH_d)_
3739

@@ -48,14 +50,15 @@ import (
4850
"fmt"
4951
"os"
5052

51-
"gopkg.in/alessio/shellescape.v1"
53+
"al.essio.dev/pkg/shellescape"
5254
)
5355

5456
func main() {
5557
fmt.Printf("ls -l %s\n", shellescape.Quote(os.Args[1]))
5658
}
5759
```
58-
_[See in Go Playground](https://play.golang.org/p/HJ_CXgSrmp)_
60+
_[See in Go Playground](https://go.dev/play/p/GeguukpSUTk)_
5961

6062
## The escargs utility
61-
__escargs__ reads lines from the standard input and prints shell-escaped versions. Unlinke __xargs__, blank lines on the standard input are not discarded.
63+
64+
__escargs__ reads lines from the standard input and prints shell-escaped versions. Unlike __xargs__, blank lines on the standard input are not discarded.

vendor/github.com/alessio/shellescape/shellescape.go renamed to vendor/al.essio.dev/pkg/shellescape/shellescape.go

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ POSIX shells.
66
The original Python package which this work was inspired by can be found
77
at https://pypi.python.org/pypi/shellescape.
88
*/
9-
package shellescape // "import gopkg.in/alessio/shellescape.v1"
9+
package shellescape // "import al.essio.dev/pkg/shellescape"
1010

1111
/*
1212
The functionality provided by shellescape.Quote could be helpful
@@ -15,6 +15,7 @@ be appended to/used in the context of shell programs' command line arguments.
1515
*/
1616

1717
import (
18+
"bytes"
1819
"regexp"
1920
"strings"
2021
"unicode"
@@ -64,3 +65,24 @@ func StripUnsafe(s string) string {
6465
return -1
6566
}, s)
6667
}
68+
69+
// ScanTokens is a split function for a bufio.Scanner that returns each word of text, stripped
70+
// of amy trailing end-of-text empty byte.
71+
func ScanTokens(data []byte, atEOF bool) (advance int, token []byte, err error) {
72+
// Return nothing if at end-of-file and no data passed.
73+
if atEOF && len(data) == 0 {
74+
return 0, nil, nil
75+
}
76+
77+
// Find the index of the input of a null character.
78+
if i := bytes.IndexByte(data, '\x00'); i >= 0 {
79+
return i + 1, data[0:i], nil
80+
}
81+
// If we're at EOF, we have a final, non-terminated line. Return it.
82+
if atEOF {
83+
return len(data), data, nil
84+
}
85+
86+
// Request more data.
87+
return 0, nil, nil
88+
}

vendor/cel.dev/expr/.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
7.0.1
1+
7.3.2
22
# Keep this pinned version in parity with cel-go

vendor/cel.dev/expr/MODULE.bazel

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,24 @@ bazel_dep(
1313
)
1414
bazel_dep(
1515
name = "googleapis",
16-
version = "0.0.0-20240819-fe8ba054a",
16+
version = "0.0.0-20241220-5e258e33.bcr.1",
1717
repo_name = "com_google_googleapis",
1818
)
19+
bazel_dep(
20+
name = "googleapis-cc",
21+
version = "1.0.0",
22+
)
23+
bazel_dep(
24+
name = "googleapis-java",
25+
version = "1.0.0",
26+
)
27+
bazel_dep(
28+
name = "googleapis-go",
29+
version = "1.0.0",
30+
)
1931
bazel_dep(
2032
name = "protobuf",
21-
version = "26.0",
33+
version = "27.0",
2234
repo_name = "com_google_protobuf",
2335
)
2436
bazel_dep(
@@ -27,7 +39,7 @@ bazel_dep(
2739
)
2840
bazel_dep(
2941
name = "rules_go",
30-
version = "0.49.0",
42+
version = "0.50.1",
3143
repo_name = "io_bazel_rules_go",
3244
)
3345
bazel_dep(
@@ -50,14 +62,6 @@ python.toolchain(
5062
python_version = "3.11",
5163
)
5264

53-
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
54-
switched_rules.use_languages(
55-
cc = True,
56-
go = True,
57-
java = True,
58-
)
59-
use_repo(switched_rules, "com_google_googleapis_imports")
60-
6165
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
6266
go_sdk.download(version = "1.21.1")
6367

vendor/cel.dev/expr/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,3 @@ For more detail, see:
6969
* [Language Definition](doc/langdef.md)
7070
7171
Released under the [Apache License](LICENSE).
72-
73-
Disclaimer: This is not an official Google product.

vendor/cel.dev/expr/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
steps:
2-
- name: 'gcr.io/cloud-builders/bazel:7.0.1'
2+
- name: 'gcr.io/cloud-builders/bazel:7.3.2'
33
entrypoint: bazel
44
args: ['build', '...']
55
id: bazel-build

0 commit comments

Comments
 (0)