Skip to content

Commit

Permalink
ci: compatibility with Go 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jun 24, 2021
1 parent ab093d6 commit c8dd319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/use-go-deadlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ if [ "$(uname)" = "Darwin" ]; then
fi

GO111MODULE=off go get golang.org/x/tools/cmd/goimports
go get github.com/sasha-s/go-deadlock/...@master
find . -name "*.go" -exec sed "${args[@]}" -e "s#\"sync\"#\"sync\"${SEP}deadlock \"github.com/sasha-s/go-deadlock\"#" {} \;
find . -name "*.go" -exec sed "${args[@]}" -e 's#sync.RWMutex#deadlock.RWMutex#' {} {} \;
find . -name "*.go" -exec sed "${args[@]}" -e 's#sync.Mutex#deadlock.Mutex#' {} {} \;
goimports -w .
go get github.com/sasha-s/go-deadlock/...@master
cd caddy
go get github.com/sasha-s/go-deadlock/...@master

0 comments on commit c8dd319

Please sign in to comment.