Future remote options #420
Replies: 4 comments 11 replies
-
Hey! Good question! I'd like to discuss this feature, since I am not using it myself, but it seems useful.
Anyway, could you tell how you use this feature? It is useful for me to understand what use cases can be applied to remote configs. Thank you! |
Beta Was this translation helpful? Give feedback.
-
The only thing in the file that calls the repo is the remote. Just like your example. Do you have a working example I can look at? |
Beta Was this translation helpful? Give feedback.
-
The update from v1.3.3 to v1.3.4 made my configs work. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm using v1.4.6 and am getting the same problem.. here's my setup: https://github.com/carhartl/lefthook-config Using for instance # lefthook.yml
remote:
git_url: https://github.com/carhartl/lefthook-config
config: go.yml # go.yml in remote config
extends:
- base.yml
pre-commit:
parallel: true
commands:
golangci-lint:
tags: lint go
glob: "*.go"
run: for file in {staged_files}; do golangci-lint run $file; done
pre-push:
parallel: true
gotest:
tags: test go
glob: "*.go"
run: gotest ./... I'm getting "Error: open /Users/klaus/Workspace/sandbox/base.yml: no such file or directory". I must be overlooking something? |
Beta Was this translation helpful? Give feedback.
-
Thank you for adding the
remote
option. It has been very helpful. However there are a few things that could make it even more powerful.extend
option in aremote
config it tried to include from the local directory.remote
config/repo? The last time I tested, lefthook assumed the script file was from the local directory.Beta Was this translation helpful? Give feedback.
All reactions