good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websocket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github
nhooyr
websocket
Commits
e43d9ade
Unverified
Commit
e43d9ade
authored
5 years ago
by
Anmol Sethi
Browse files
Options
Downloads
Patches
Plain Diff
Improve docs and CI
parent
8c049937
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/fmt/entrypoint.sh
+5
-1
5 additions, 1 deletion
ci/fmt/entrypoint.sh
ci/lib.sh
+0
-4
0 additions, 4 deletions
ci/lib.sh
dial.go
+2
-0
2 additions, 0 deletions
dial.go
with
7 additions
and
5 deletions
ci/fmt/entrypoint.sh
+
5
−
1
View file @
e43d9ade
...
...
@@ -2,6 +2,10 @@
source
ci/lib.sh
||
exit
1
unstaged_files
()
{
git ls-files
--other
--modified
--exclude-standard
}
gen
()
{
# Unfortunately, this is the only way to ensure go.mod and go.sum are correct.
# See https://github.com/golang/go/issues/27005
...
...
@@ -25,7 +29,7 @@ if [[ $CI && $(unstaged_files) != "" ]]; then
echo
echo
"files either need generation or are formatted incorrectly"
echo
"please run:"
echo
"./
test
.sh"
echo
"./
ci/run
.sh"
echo
git status
exit
1
...
...
This diff is collapsed.
Click to expand it.
ci/lib.sh
+
0
−
4
View file @
e43d9ade
...
...
@@ -12,7 +12,3 @@ export CI=${GITHUB_ACTION-}
if
[[
$CI
]]
;
then
export
GOFLAGS
=
-mod
=
readonly
fi
unstaged_files
()
{
git ls-files
--other
--modified
--exclude-standard
}
This diff is collapsed.
Click to expand it.
dial.go
+
2
−
0
View file @
e43d9ade
...
...
@@ -36,6 +36,8 @@ type DialOptions struct {
// If an error occurs, the returned response may be non nil. However, you can only
// read the first 1024 bytes of its body.
//
// You never need to close the resp.Body yourself.
//
// This function requires at least Go 1.12 to succeed as it uses a new feature
// in net/http to perform WebSocket handshakes and get a writable body
// from the transport. See https://github.com/golang/go/issues/26937#issuecomment-415855861
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment