File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
source ci/lib.sh || exit 1
4
4
5
+ unstaged_files () {
6
+ git ls-files --other --modified --exclude-standard
7
+ }
8
+
5
9
gen () {
6
10
# Unfortunately, this is the only way to ensure go.mod and go.sum are correct.
7
11
# See https://github.com/golang/go/issues/27005
@@ -25,7 +29,7 @@ if [[ $CI && $(unstaged_files) != "" ]]; then
25
29
echo
26
30
echo " files either need generation or are formatted incorrectly"
27
31
echo " please run:"
28
- echo " ./test .sh"
32
+ echo " ./ci/run .sh"
29
33
echo
30
34
git status
31
35
exit 1
Original file line number Diff line number Diff line change @@ -12,7 +12,3 @@ export CI=${GITHUB_ACTION-}
12
12
if [[ $CI ]]; then
13
13
export GOFLAGS=-mod=readonly
14
14
fi
15
-
16
- unstaged_files () {
17
- git ls-files --other --modified --exclude-standard
18
- }
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ type DialOptions struct {
36
36
// If an error occurs, the returned response may be non nil. However, you can only
37
37
// read the first 1024 bytes of its body.
38
38
//
39
+ // You never need to close the resp.Body yourself.
40
+ //
39
41
// This function requires at least Go 1.12 to succeed as it uses a new feature
40
42
// in net/http to perform WebSocket handshakes and get a writable body
41
43
// from the transport. See https://github.com/golang/go/issues/26937#issuecomment-415855861
You can’t perform that action at this time.
0 commit comments