Merge pull request #1769 from pre-commit/fix_golang_hello_example

fix reference to github.com/golang/example
This commit is contained in:
Anthony Sottile 2021-01-22 13:15:55 -08:00 committed by GitHub
commit bb50e00447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -569,7 +569,7 @@ def test_additional_golang_dependencies_installed(
path = make_repo(tempdir_factory, 'golang_hooks_repo') path = make_repo(tempdir_factory, 'golang_hooks_repo')
config = make_config_from_repo(path) config = make_config_from_repo(path)
# A small go package # A small go package
deps = ['github.com/golang/example/hello'] deps = ['golang.org/x/example/hello']
config['hooks'][0]['additional_dependencies'] = deps config['hooks'][0]['additional_dependencies'] = deps
hook = _get_hook(config, store, 'golang-hook') hook = _get_hook(config, store, 'golang-hook')
binaries = os.listdir( binaries = os.listdir(
@ -590,7 +590,7 @@ def test_local_golang_additional_dependencies(store):
'name': 'hello', 'name': 'hello',
'entry': 'hello', 'entry': 'hello',
'language': 'golang', 'language': 'golang',
'additional_dependencies': ['github.com/golang/example/hello'], 'additional_dependencies': ['golang.org/x/example/hello'],
}], }],
} }
hook = _get_hook(config, store, 'hello') hook = _get_hook(config, store, 'hello')