Title: Add support for Go 1.16 by rafikdraoui · Pull Request #1818 · pre-commit/pre-commit · GitHub
Open Graph Title: Add support for Go 1.16 by rafikdraoui · Pull Request #1818 · pre-commit/pre-commit
X Title: Add support for Go 1.16 by rafikdraoui · Pull Request #1818 · pre-commit/pre-commit
Description: 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 The golang tests pass under all combinations of Go [1.15|1.16] + GO111MODULE=[""|"on"|"auto"]. I could also install and run the following hook successfully with both Go 1.15 and Go 1.16: - repo: local hooks: - id: shfmt name: Format shell files with shfmt language: golang additional_dependencies: ["mvdan.cc/sh/v3/cmd/shfmt@v3.2.1"] types: [shell] entry: shfmt -w These changes work for my use cases, and they seem sensible to me, but I'm not all that familiar with Go modules, so perhaps this has some implications I don't know about.
Open Graph Description: 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 The golang tests pass under all combinat...
X Description: 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 The golang tests pass under all combinat...
Opengraph URL: https://github.com/pre-commit/pre-commit/pull/1818
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8f1151ad-6217-5d0c-0719-1a2ddcefbbfe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A23C:38AD8F:7696FB:ABC683:6A55F882 |
| html-safe-nonce | 61c9b128515e28eb912938c8bf7d1ce0cc4f23267a1d62f07b61baba314718ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjNDOjM4QUQ4Rjo3Njk2RkI6QUJDNjgzOjZBNTVGODgyIiwidmlzaXRvcl9pZCI6Ijk2NTA2MzMyNjI0MDczMzMxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cccfcc3fa0940545f42655f5157335620124b9d5a7adfb0819406e9ff4eee86 |
| hovercard-subject-tag | pull_request:580481409 |
| github-keyboard-shortcuts | repository,commits,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pre-commit/pre-commit/pull/1818/files |
| twitter:image | https://avatars.githubusercontent.com/u/767223?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/767223?s=400&v=4 |
| og:image:alt | 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 The golang tests pass under all combinat... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width