Skip to content

Commit

Permalink
Add support for Go 1.16
Browse files Browse the repository at this point in the history
Go 1.16 changes the way modules are handled. It now expects Go projects
to have non-empty `go.mod` files.

This change is compatible with Go 1.15.

Fixes #1815
  • Loading branch information
rafikdraoui committed Feb 25, 2021
1 parent f3de91c commit fe1f56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pre_commit/resources/empty_template_go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module pre-commit-dummy-empty-module
1 change: 1 addition & 0 deletions testing/resources/golang_hooks_repo/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module golang-hello-world

0 comments on commit fe1f56c

Please sign in to comment.