Skip to content

Commit fd75552

Browse files
committed
ci: Looks like we now need sudo to patch Go stdlib on CI
1 parent fc58b75 commit fd75552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Taskfile.dist.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ tasks:
4646
patch:
4747
cmds:
4848
- sed 's:\(delete(req.Header, "Host")\)$://\1:' "$(go env GOROOT)/src/net/http/server.go" > x
49-
- mv x "$(go env GOROOT)/src/net/http/server.go"
49+
- |-
50+
$(if [[ -n "$CI" ]] then echo sudo; fi) mv x "$(go env GOROOT)/src/net/http/server.go"
5051
5152
unpatch:
5253
cmds:

0 commit comments

Comments
 (0)