mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #1428 from scop/golang-empty-dummy-module
Add dummy go.mod for local "empty" installs
This commit is contained in:
commit
5ed3f5649b
2 changed files with 3 additions and 3 deletions
0
pre_commit/resources/empty_template_go.mod
Normal file
0
pre_commit/resources/empty_template_go.mod
Normal file
|
|
@ -182,9 +182,9 @@ class Store:
|
||||||
return self._new_repo(repo, ref, deps, clone_strategy)
|
return self._new_repo(repo, ref, deps, clone_strategy)
|
||||||
|
|
||||||
LOCAL_RESOURCES = (
|
LOCAL_RESOURCES = (
|
||||||
'Cargo.toml', 'main.go', 'main.rs', '.npmignore', 'package.json',
|
'Cargo.toml', 'main.go', 'go.mod', 'main.rs', '.npmignore',
|
||||||
'pre_commit_dummy_package.gemspec', 'setup.py', 'environment.yml',
|
'package.json', 'pre_commit_dummy_package.gemspec', 'setup.py',
|
||||||
'Makefile.PL',
|
'environment.yml', 'Makefile.PL',
|
||||||
)
|
)
|
||||||
|
|
||||||
def make_local(self, deps: Sequence[str]) -> str:
|
def make_local(self, deps: Sequence[str]) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue